[llvm-branch-commits] [llvm-branch] r100917 - /llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp

Gabor Greif ggreif at gmail.com
Fri Apr 9 19:30:06 PDT 2010


Author: ggreif
Date: Fri Apr  9 21:30:06 2010
New Revision: 100917

URL: http://llvm.org/viewvc/llvm-project?rev=100917&view=rev
Log:
shift operand range

Modified:
    llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp

Modified: llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp?rev=100917&r1=100916&r2=100917&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp Fri Apr  9 21:30:06 2010
@@ -2930,7 +2930,7 @@
 
   unsigned NumDeclaredParams = FTy->getNumParams();
 
-  CallSite::arg_iterator AI = I.op_begin()+1, AE = I.op_end();
+  CallInst::op_iterator AI = I.op_begin(), AE = I.op_end() - 1;
   unsigned ArgNo = 0;
   if (isStructRet) {   // Skip struct return argument.
     ++AI;





More information about the llvm-branch-commits mailing list