This revision was automatically updated to reflect the committed changes. Closed by commit rGb0525f66988e: [NFC][CLANG] [NFC][CLANG] Fix nullptr dereference issue in… (authored by Manna).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D151928/new/ https://reviews.llvm.org/D151928 Files: clang/lib/Interpreter/Value.cpp Index: clang/lib/Interpreter/Value.cpp =================================================================== --- clang/lib/Interpreter/Value.cpp +++ clang/lib/Interpreter/Value.cpp @@ -108,7 +108,7 @@ if (!BT || BT->isNullPtrType()) return Value::K_PtrOrObj; - switch (QT->getAs<BuiltinType>()->getKind()) { + switch (QT->castAs<BuiltinType>()->getKind()) { default: assert(false && "Type not supported"); return Value::K_Unspecified;
Index: clang/lib/Interpreter/Value.cpp =================================================================== --- clang/lib/Interpreter/Value.cpp +++ clang/lib/Interpreter/Value.cpp @@ -108,7 +108,7 @@ if (!BT || BT->isNullPtrType()) return Value::K_PtrOrObj; - switch (QT->getAs<BuiltinType>()->getKind()) { + switch (QT->castAs<BuiltinType>()->getKind()) { default: assert(false && "Type not supported"); return Value::K_Unspecified;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits