diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp --- a/clang/lib/Interpreter/Interpreter.cpp +++ b/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) \