llvm-svn: 109101
This commit is contained in:
Gabor Greif 2010-07-22 13:07:39 +00:00
parent b8686360a1
commit 84012a93ef
1 changed files with 2 additions and 3 deletions

View File

@ -83,10 +83,9 @@ SpecializeFunction(Function* F,
Value::use_iterator i = ii;
++ii;
User *U = *i;
if (isa<CallInst>(U) || isa<InvokeInst>(U)) {
CallSite CS(cast<Instruction>(U));
CallSite CS(U);
if (CS) {
if (CS.getCalledFunction() == F) {
SmallVector<Value*, 6> args;
// Assemble the non-specialized arguments for the updated callsite.
// In the process, make sure that the specialized arguments are