================ @@ -480,6 +480,9 @@ struct RegisterBindingFlags { bool ContainsNumeric = false; bool DefaultGlobals = false; + + // used only when Resource == true + llvm::dxil::ResourceClass ResourceClass = llvm::dxil::ResourceClass::UAV; ---------------- damyanp wrote:
What is this was `std::optional<llvm::dxil::ResourceClass>`? Then you wouldn't need the `Resource` flag, and you wouldn't need to initialize `ResourceClass` to some random value. https://github.com/llvm/llvm-project/pull/106657 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits