Index: clang/lib/AST/Interp/ByteCodeExprGen.cpp =================================================================== --- clang/lib/AST/Interp/ByteCodeExprGen.cpp +++ clang/lib/AST/Interp/ByteCodeExprGen.cpp @@ -496,7 +496,7 @@ template const RecordType *ByteCodeExprGen::getRecordTy(QualType Ty) { - if (auto *PT = dyn_cast(Ty)) + if (const PointerType* PT = dyn_cast(Ty)) return PT->getPointeeType()->getAs(); else return Ty->getAs();