use callsite to obtain all arguments

llvm-svn: 106729
This commit is contained in:
Gabor Greif 2010-06-24 10:04:07 +00:00
parent 42f620cc55
commit 5bcaa55761
1 changed files with 2 additions and 1 deletions

View File

@ -272,7 +272,8 @@ Expression ValueTable::create_expression(CallInst* C) {
e.function = C->getCalledFunction();
e.opcode = Expression::CALL;
for (CallInst::op_iterator I = C->op_begin()+1, E = C->op_end();
CallSite CS(C);
for (CallInst::op_iterator I = CS.arg_begin(), E = CS.arg_end();
I != E; ++I)
e.varargs.push_back(lookup_or_add(*I));