Index: clang/lib/Interpreter/Interpreter.cpp =================================================================== --- clang/lib/Interpreter/Interpreter.cpp +++ clang/lib/Interpreter/Interpreter.cpp @@ -768,7 +768,7 @@ if (const auto *ET = QT->getAs()) QT = ET->getDecl()->getIntegerType(); - switch (QT->getAs()->getKind()) { + switch (QT->castAs()->getKind()) { default: llvm_unreachable("unknown type kind!"); #define X(type, name) \