llvm.org GIT mirror llvm / 53ba550
use ArgOperand API git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107498 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
13981398 if (call->getNumArgOperands() > 1) {
13991399 Out << "std::vector " << iName << "_params;";
14001400 nl(Out);
1401 for (unsigned i = 1; i < call->getNumOperands(); ++i) {
1402 Out << iName << "_params.push_back(" << opNames[i] << ");";
1401 for (unsigned i = 0; i < call->getNumArgOperands(); ++i) {
1402 Out << iName << "_params.push_back(" << opNames[i+1] << ");";
14031403 nl(Out);
14041404 }
14051405 Out << "CallInst* " << iName << " = CallInst::Create("