Use getAsArrayTypeUnsafe() instead of getUnqualifiedDesugaredType() to
get the underlying ArrayType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227129
91177308-0d34-0410-b5e6-
96231b3b80d8
Sema &S) {
// Get the length of the string as parsed.
auto *ConstantArrayTy =
- cast<ConstantArrayType>(Str->getType()->getUnqualifiedDesugaredType());
+ cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe());
uint64_t StrLength = ConstantArrayTy->getSize().getZExtValue();
if (const IncompleteArrayType *IAT = dyn_cast<IncompleteArrayType>(AT)) {