Skip to content
Snippets Groups Projects
Commit e3ba486c authored by Gabor Greif's avatar Gabor Greif
Browse files

use ArgOperand API (one more hunk I could split)

llvm-svn: 106825
parent 5f3e656a
No related branches found
No related tags found
No related merge requests found
...@@ -465,8 +465,8 @@ bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) { ...@@ -465,8 +465,8 @@ bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) {
if (isFoldable(4, 3, false)) { if (isFoldable(4, 3, false)) {
Value *Val = B.CreateIntCast(CI->getOperand(2), B.getInt8Ty(), Value *Val = B.CreateIntCast(CI->getOperand(2), B.getInt8Ty(),
false); false);
EmitMemSet(CI->getOperand(1), Val, CI->getOperand(3), false, B, TD); EmitMemSet(CI->getArgOperand(0), Val, CI->getArgOperand(2), false, B, TD);
replaceCall(CI->getOperand(1)); replaceCall(CI->getArgOperand(0));
return true; return true;
} }
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment