[PATCH] D151054: [NFC][CLANG] Fix issue with dereference null return value found by Coverity static analyzer tool
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 11:45:15 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG806b0cd5ab56: [NFC][CLANG] Fix issue with dereference null return value found by Coverity… (authored by Manna).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151054/new/
https://reviews.llvm.org/D151054
Files:
clang/lib/CodeGen/ItaniumCXXABI.cpp
Index: clang/lib/CodeGen/ItaniumCXXABI.cpp
===================================================================
--- clang/lib/CodeGen/ItaniumCXXABI.cpp
+++ clang/lib/CodeGen/ItaniumCXXABI.cpp
@@ -580,7 +580,7 @@
CGBuilderTy &Builder = CGF.Builder;
const FunctionProtoType *FPT =
- MPT->getPointeeType()->getAs<FunctionProtoType>();
+ MPT->getPointeeType()->castAs<FunctionProtoType>();
auto *RD =
cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151054.524822.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230523/718908b6/attachment.bin>
More information about the cfe-commits
mailing list