[PATCH] D151928: [NFC][CLANG] Fix nullptr dereference issue in ConvertQualTypeToKind()
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 4 09:41:19 PDT 2023
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151928.528231.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230604/ec163084/attachment-0001.bin>
More information about the cfe-commits
mailing list