projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa395ec
)
Fix PR78
author
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 02:06:27 +0000
(
02:06
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 2 Nov 2003 02:06:27 +0000
(
02:06
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9648
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/DeadArgumentElimination.cpp
b/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 04567e1316fdbf273884b207a0a2c1a2024a30ae..6e8e7dffb930797176c48ec3e25726fe1ad1bd53 100644
(file)
--- a/
lib/Transforms/IPO/DeadArgumentElimination.cpp
+++ b/
lib/Transforms/IPO/DeadArgumentElimination.cpp
@@
-276,7
+276,7
@@
bool DAE::isMaybeLiveArgumentNowLive(Argument *Arg) {
CallSite CS = CallSite::get(*I);
// We know that this can only be used for direct calls...
- Function *Callee =
cast<Function>(CS.getCalledValue()
);
+ Function *Callee =
CS.getCalledFunction(
);
// Loop over all of the arguments (because Arg may be passed into the call
// multiple times) and check to see if any are now alive...