[PATCH] D151947: [NFC][CLANG] Fix Static Code Analyzer Concerns
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 4 09:11:27 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc7550310738b: [NFC][CLANG] Fix Static Code Analyzer Concerns (authored by Manna).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151947/new/
https://reviews.llvm.org/D151947
Files:
clang/lib/CodeGen/CGDebugInfo.cpp
Index: clang/lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- clang/lib/CodeGen/CGDebugInfo.cpp
+++ clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3307,7 +3307,7 @@
Flags);
const FunctionProtoType *FPT =
- Ty->getPointeeType()->getAs<FunctionProtoType>();
+ Ty->getPointeeType()->castAs<FunctionProtoType>();
return DBuilder.createMemberPointerType(
getOrCreateInstanceMethodType(
CXXMethodDecl::getThisType(FPT, Ty->getMostRecentCXXRecordDecl()),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151947.528227.patch
Type: text/x-patch
Size: 535 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230604/da2f6334/attachment.bin>
More information about the cfe-commits
mailing list