[PATCH] D78182: [CallSite removal][PruneEH] Use CallBase instead of CallSite. NFC
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 10:24:46 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa0d92248eaed: [CallSite removal][PruneEH] Use CallBase instead of CallSite. NFC (authored by craig.topper).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78182/new/
https://reviews.llvm.org/D78182
Files:
llvm/lib/Transforms/IPO/PruneEH.cpp
Index: llvm/lib/Transforms/IPO/PruneEH.cpp
===================================================================
--- llvm/lib/Transforms/IPO/PruneEH.cpp
+++ llvm/lib/Transforms/IPO/PruneEH.cpp
@@ -135,8 +135,8 @@
SCCMightUnwind |= InstMightUnwind;
}
if (CheckReturnViaAsm && !SCCMightReturn)
- if (auto ICS = ImmutableCallSite(&I))
- if (const auto *IA = dyn_cast<InlineAsm>(ICS.getCalledValue()))
+ if (const auto *CB = dyn_cast<CallBase>(&I))
+ if (const auto *IA = dyn_cast<InlineAsm>(CB->getCalledValue()))
if (IA->hasSideEffects())
SCCMightReturn = true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78182.257757.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/782905ff/attachment.bin>
More information about the llvm-commits
mailing list