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 98d8a84 commit 2494565Copy full SHA for 2494565
clang/lib/Parse/ParseHLSL.cpp
@@ -27,7 +27,7 @@ static bool validateDeclsInsideHLSLBuffer(Parser::DeclGroupPtrTy DG,
27
return false;
28
DeclGroupRef Decls = DG.get();
29
bool IsValid = true;
30
- // Only allow function, variable, record decls inside HLSLBuffer.
+ // Only allow function, variable, record, and empty decls inside HLSLBuffer.
31
for (DeclGroupRef::iterator I = Decls.begin(), E = Decls.end(); I != E; ++I) {
32
Decl *D = *I;
33
if (isa<CXXRecordDecl, RecordDecl, FunctionDecl, VarDecl, EmptyDecl>(D))
0 commit comments