Skip to content

Commit ac99f5a

Browse files
committed
one more instance to replace
1 parent 10a06e3 commit ac99f5a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3630,10 +3630,7 @@ void SemaHLSL::ActOnVariableDeclarator(VarDecl *VD) {
36303630
if (VD->getType()->isHLSLIntangibleType())
36313631
collectResourceBindingsOnVarDecl(VD);
36323632

3633-
const Type *VarType = VD->getType().getTypePtr();
3634-
while (VarType->isArrayType())
3635-
VarType = VarType->getArrayElementTypeNoTypeQual();
3636-
if (VarType->isHLSLResourceRecord() ||
3633+
if (isResourceRecordTypeOrArrayOf(VD) ||
36373634
VD->hasAttr<HLSLVkConstantIdAttr>()) {
36383635
// Make the variable for resources static. The global externally visible
36393636
// storage is accessed through the handle, which is a member. The variable

0 commit comments

Comments
 (0)