[llvm-branch-commits] [llvm-branch] r100576 - /llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 6 15:42:13 PDT 2010
Author: ggreif
Date: Tue Apr 6 17:42:13 2010
New Revision: 100576
URL: http://llvm.org/viewvc/llvm-project?rev=100576&view=rev
Log:
shift operand range for intrinsic
Modified:
llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp?rev=100576&r1=100575&r2=100576&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/VMCore/AutoUpgrade.cpp Tue Apr 6 17:42:13 2010
@@ -454,7 +454,7 @@
case Intrinsic::eh_selector:
case Intrinsic::eh_typeid_for: {
// Only the return type changed.
- SmallVector<Value*, 8> Operands(CI->op_begin() + 1, CI->op_end());
+ SmallVector<Value*, 8> Operands(CI->op_begin(), CI->op_end() - 1);
CallInst *NewCI = CallInst::Create(NewFn, Operands.begin(), Operands.end(),
"upgraded." + CI->getName(), CI);
NewCI->setTailCall(CI->isTailCall());
More information about the llvm-branch-commits
mailing list