This revision was automatically updated to reflect the committed changes. Closed by commit rG5bb069246573: [NFC][CLANG] Fix nullptr dereference issue in SetValueDataBasedOnQualType() (authored by Manna).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D151770/new/ https://reviews.llvm.org/D151770 Files: clang/lib/Interpreter/Interpreter.cpp Index: clang/lib/Interpreter/Interpreter.cpp =================================================================== --- clang/lib/Interpreter/Interpreter.cpp +++ clang/lib/Interpreter/Interpreter.cpp @@ -768,7 +768,7 @@ if (const auto *ET = QT->getAs<EnumType>()) QT = ET->getDecl()->getIntegerType(); - switch (QT->getAs<BuiltinType>()->getKind()) { + switch (QT->castAs<BuiltinType>()->getKind()) { default: llvm_unreachable("unknown type kind!"); #define X(type, name) \
Index: clang/lib/Interpreter/Interpreter.cpp =================================================================== --- clang/lib/Interpreter/Interpreter.cpp +++ clang/lib/Interpreter/Interpreter.cpp @@ -768,7 +768,7 @@ if (const auto *ET = QT->getAs<EnumType>()) QT = ET->getDecl()->getIntegerType(); - switch (QT->getAs<BuiltinType>()->getKind()) { + switch (QT->castAs<BuiltinType>()->getKind()) { default: llvm_unreachable("unknown type kind!"); #define X(type, name) \
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits