use ArgOperand API (one more hunk I could split)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2010-06-25 07:58:41 +00:00
parent 9c68a7bb45
commit f1ba6513bf

View File

@ -465,8 +465,8 @@ bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) {
if (isFoldable(4, 3, false)) {
Value *Val = B.CreateIntCast(CI->getOperand(2), B.getInt8Ty(),
false);
EmitMemSet(CI->getOperand(1), Val, CI->getOperand(3), false, B, TD);
replaceCall(CI->getOperand(1));
EmitMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), false, B, TD);
replaceCall(CI->getArgOperand(0));
return true;
}
return false;