From 7f7285bab7bd4b903eb75aa895ae730ab736f00a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Nov 2003 02:06:27 +0000 Subject: [PATCH] Fix PR78 llvm-svn: 9648 --- llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp index 04567e1316fd..6e8e7dffb930 100644 --- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/llvm/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(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...