diff --git a/clang/lib/Interpreter/Value.cpp b/clang/lib/Interpreter/Value.cpp index fe37eebac5257..6d0eaf1b82e10 100644 --- a/clang/lib/Interpreter/Value.cpp +++ b/clang/lib/Interpreter/Value.cpp @@ -108,7 +108,7 @@ static Value::Kind ConvertQualTypeToKind(const ASTContext &Ctx, QualType QT) { 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;