Skip to content

Commit 70912b1

Browse files
s-perronhekota
andcommitted
Update clang/lib/Sema/SemaHLSL.cpp
Co-authored-by: Helena Kotas <[email protected]>
1 parent 554a940 commit 70912b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,9 +3066,8 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
30663066
collectResourceBindingsOnVarDecl(VD);
30673067

30683068
const Type *VarType = VD->getType().getTypePtr();
3069-
if (VarType->isArrayType()) {
3069+
while (VarType->isArrayType())
30703070
VarType = VarType->getArrayElementTypeNoTypeQual();
3071-
}
30723071
if (VarType->isHLSLResourceClass()) {
30733072
// Make the variable for resources static. The global externally visible
30743073
// storage is accessed through the handle, which is a member. The variable

0 commit comments

Comments
 (0)