Skip to content

Commit 199395c

Browse files
committed
remove sugar
1 parent 8fb1b3f commit 199395c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3902,7 +3902,7 @@ QualType ASTContext::getArrayParameterType(QualType Ty) const {
39023902
if (Ty->isArrayParameterType())
39033903
return Ty;
39043904
assert(Ty->isConstantArrayType() && "Ty must be an array type.");
3905-
const auto *ATy = cast<ConstantArrayType>(Ty);
3905+
const auto *ATy = cast<ConstantArrayType>(Ty.getDesugaredType(*this));
39063906
llvm::FoldingSetNodeID ID;
39073907
ATy->Profile(ID, *this, ATy->getElementType(), ATy->getZExtSize(),
39083908
ATy->getSizeExpr(), ATy->getSizeModifier(),

0 commit comments

Comments
 (0)