[llvm] a0d9224 - [CallSite removal][PruneEH] Use CallBase instead of CallSite. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 10:12:02 PDT 2020
Author: Craig Topper
Date: 2020-04-15T10:11:41-07:00
New Revision: a0d92248eaed41a8cbf68cdd4221df5afa4729bf
URL: https://github.com/llvm/llvm-project/commit/a0d92248eaed41a8cbf68cdd4221df5afa4729bf
DIFF: https://github.com/llvm/llvm-project/commit/a0d92248eaed41a8cbf68cdd4221df5afa4729bf.diff
LOG: [CallSite removal][PruneEH] Use CallBase instead of CallSite. NFC
Reviewers: mtrofin, dblaikie
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78182
Added:
Modified:
llvm/lib/Transforms/IPO/PruneEH.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/PruneEH.cpp b/llvm/lib/Transforms/IPO/PruneEH.cpp
index 45a0ce20eb17..874791b5fa26 100644
--- a/llvm/lib/Transforms/IPO/PruneEH.cpp
+++ b/llvm/lib/Transforms/IPO/PruneEH.cpp
@@ -135,8 +135,8 @@ static bool runImpl(CallGraphSCC &SCC, CallGraph &CG) {
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;
}
More information about the llvm-commits
mailing list