projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87c46b
)
[CallSite removal][PruneEH] Use CallBase instead of CallSite. NFC
author
Craig Topper
<craig.topper@gmail.com>
Wed, 15 Apr 2020 05:04:35 +0000
(22:04 -0700)
committer
Craig Topper
<craig.topper@gmail.com>
Wed, 15 Apr 2020 17:11:41 +0000
(10:11 -0700)
Reviewers: mtrofin, dblaikie
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78182
llvm/lib/Transforms/IPO/PruneEH.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/PruneEH.cpp
b/llvm/lib/Transforms/IPO/PruneEH.cpp
index
45a0ce2
..
874791b
100644
(file)
--- 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;
}