[llvm-branch-commits] [llvm-branch] r100765 - /llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp
Gabor Greif
ggreif at gmail.com
Thu Apr 8 07:50:15 PDT 2010
Author: ggreif
Date: Thu Apr 8 09:50:15 2010
New Revision: 100765
URL: http://llvm.org/viewvc/llvm-project?rev=100765&view=rev
Log:
shift operand ranges
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=100765&r1=100764&r2=100765&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Target/CBackend/CBackend.cpp Thu Apr 8 09:50:15 2010
@@ -3211,7 +3211,7 @@
DestVal = ResultVals[ValueCount].first;
DestValNo = ResultVals[ValueCount].second;
} else
- DestVal = CI.getOperand(ValueCount-ResultVals.size()+1);
+ DestVal = CI.getOperand(ValueCount-ResultVals.size());
if (I->isEarlyClobber)
C = "&"+C;
@@ -3245,7 +3245,7 @@
}
assert(ValueCount >= ResultVals.size() && "Input can't refer to result");
- Value *SrcVal = CI.getOperand(ValueCount-ResultVals.size()+1);
+ Value *SrcVal = CI.getOperand(ValueCount-ResultVals.size());
Out << "\"" << C << "\"(";
if (!I->isIndirect)
More information about the llvm-branch-commits
mailing list