[llvm-branch-commits] [llvm-branch] r100301 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp
Gabor Greif
ggreif at gmail.com
Sat Apr 3 17:51:47 PDT 2010
Author: ggreif
Date: Sat Apr 3 19:51:47 2010
New Revision: 100301
URL: http://llvm.org/viewvc/llvm-project?rev=100301&view=rev
Log:
shift args
Modified:
llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp?rev=100301&r1=100300&r2=100301&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Transforms/Instrumentation/ProfilingUtils.cpp Sat Apr 3 19:51:47 2010
@@ -73,10 +73,10 @@
if (AI->getType() != ArgVTy) {
Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy,
false);
- InitCall->setOperand(2,
+ InitCall->setOperand(1,
CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall));
} else {
- InitCall->setOperand(2, AI);
+ InitCall->setOperand(1, AI);
}
/* FALL THROUGH */
@@ -93,12 +93,12 @@
}
opcode = CastInst::getCastOpcode(AI, true,
Type::getInt32Ty(Context), true);
- InitCall->setOperand(1,
+ InitCall->setOperand(0,
CastInst::Create(opcode, AI, Type::getInt32Ty(Context),
"argc.cast", InitCall));
} else {
AI->replaceAllUsesWith(InitCall);
- InitCall->setOperand(1, AI);
+ InitCall->setOperand(0, AI);
}
case 0: break;
More information about the llvm-branch-commits
mailing list