[clang] [HLSL] Add ByteAddressBuffer definition to HLSLExternalSemaSource #113477 (PR #116699)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 15:02:39 PST 2024
================
@@ -1474,6 +1474,11 @@ DeclContext *DeclContext::getPrimaryContext() {
case Decl::ObjCCategoryImpl:
return this;
+ case Decl::CXXRecord:
+ if (auto *OPD = dyn_cast<CXXRecordDecl>(this))
+ if (auto *Def = OPD->getDefinition())
+ return Def;
+ return this;
default:
----------------
joaosaffran wrote:
I am not 100% sure, but my understanding is, `ByteAddressBuffer` is the first buffer to not use `addSimpleTemplateParams`. Such method, calls `Builder.addTypeParameter`, which modifies the declaration.
@bogner @llvm-beanz, do any of you can correct/confirm this fix, please?
https://github.com/llvm/llvm-project/pull/116699
More information about the cfe-commits
mailing list