Skip to content

Commit eb6debf

Browse files
committed
make suggested change
1 parent 8730890 commit eb6debf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool HLSLBufferLayoutBuilder::layoutField(const FieldDecl *FD,
196196
QualType Ty = FieldTy;
197197
while (Ty->isConstantArrayType()) {
198198
const ConstantArrayType *ArrayTy =
199-
cast<ConstantArrayType>(Ty.getDesugaredType(CGM.getContext()));
199+
cast<ConstantArrayType>(Ty->getUnqualifiedDesugaredType());
200200
ArrayCount *= ArrayTy->getSExtSize();
201201
Ty = ArrayTy->getElementType();
202202
}

0 commit comments

Comments
 (0)