summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/DeadArgumentElimination.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-02 02:06:27 +0000
committerChris Lattner <sabre@nondot.org>2003-11-02 02:06:27 +0000
commitd6d0d8c18d64c5f212cd6c2b42b9bcde5acebf72 (patch)
treecbe922b41c3767a376206bcc9a34520bb0587ade /lib/Transforms/IPO/DeadArgumentElimination.cpp
parentfa395ec03639614925a111e91c7623efc14e8e3d (diff)
downloadllvm-d6d0d8c18d64c5f212cd6c2b42b9bcde5acebf72.tar.gz
llvm-d6d0d8c18d64c5f212cd6c2b42b9bcde5acebf72.tar.bz2
llvm-d6d0d8c18d64c5f212cd6c2b42b9bcde5acebf72.tar.xz
Fix PR78
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/DeadArgumentElimination.cpp')
-rw-r--r--lib/Transforms/IPO/DeadArgumentElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp
index 04567e1316..6e8e7dffb9 100644
--- 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...