[llvm-commits] [llvm] r106825 - /llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
Gabor Greif
ggreif at gmail.com
Fri Jun 25 00:58:41 PDT 2010
Author: ggreif
Date: Fri Jun 25 02:58:41 2010
New Revision: 106825
URL: http://llvm.org/viewvc/llvm-project?rev=106825&view=rev
Log:
use ArgOperand API (one more hunk I could split)
Modified:
llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
Modified: llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp?rev=106825&r1=106824&r2=106825&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp Fri Jun 25 02:58:41 2010
@@ -465,8 +465,8 @@
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;
More information about the llvm-commits
mailing list