diff --git a/clang/lib/Interpreter/Value.cpp b/clang/lib/Interpreter/Value.cpp --- a/clang/lib/Interpreter/Value.cpp +++ b/clang/lib/Interpreter/Value.cpp @@ -108,7 +108,7 @@ if (!BT || BT->isNullPtrType()) return Value::K_PtrOrObj; - switch (QT->getAs()->getKind()) { + switch (QT->castAs()->getKind()) { default: assert(false && "Type not supported"); return Value::K_Unspecified;