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 554a940 commit 70912b1Copy full SHA for 70912b1
clang/lib/Sema/SemaHLSL.cpp
@@ -3066,9 +3066,8 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
3066
collectResourceBindingsOnVarDecl(VD);
3067
3068
const Type *VarType = VD->getType().getTypePtr();
3069
- if (VarType->isArrayType()) {
+ while (VarType->isArrayType())
3070
VarType = VarType->getArrayElementTypeNoTypeQual();
3071
- }
3072
if (VarType->isHLSLResourceClass()) {
3073
// Make the variable for resources static. The global externally visible
3074
// storage is accessed through the handle, which is a member. The variable
0 commit comments