We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d4037 commit 7974f12Copy full SHA for 7974f12
clang/lib/Sema/SemaHLSL.cpp
@@ -425,6 +425,7 @@ static CXXRecordDecl *createHostLayoutStruct(Sema &S,
425
// copy base struct, create HLSL Buffer compatible version if needed
426
if (unsigned NumBases = StructDecl->getNumBases()) {
427
assert(NumBases == 1 && "HLSL supports only one base type");
428
+ (void)NumBases;
429
CXXBaseSpecifier Base = *StructDecl->bases_begin();
430
CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl();
431
if (requiresImplicitBufferLayoutStructure(BaseDecl)) {
0 commit comments