[clang] [HLSL] Add codegen for accessing resource members of a struct (PR #187127)

Joshua Batista via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 12:20:33 PDT 2026


================
@@ -41,5 +41,19 @@ void EmbeddedResourceNameBuilder::pushArrayIndex(uint64_t Index) {
   OS << Index;
 }
 
+void EmbeddedResourceNameBuilder::pushBaseNameHierarchy(
+    CXXRecordDecl *DerivedRD, CXXRecordDecl *BaseRD) {
+  Offsets.push_back(Name.size());
+  Name.append(FieldDelim);
----------------
bob80905 wrote:

Do we want to assert that BaseRD != DerivedRD? Otherwise, we append a field delim to the name and don't add anything afterwards, and that could ruin the name?

https://github.com/llvm/llvm-project/pull/187127


More information about the cfe-commits mailing list