aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/BuildLibCalls.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-25 07:58:41 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-25 07:58:41 +0000
commitad390dec76dd009d85d19562e2f13e200b5c49d4 (patch)
tree43446a3f36fe3b7d372901a590a4cd59a8bdef08 /lib/Transforms/Utils/BuildLibCalls.cpp
parent975d1a1d70e879998f9534adec61733c74603101 (diff)
downloadexternal_llvm-ad390dec76dd009d85d19562e2f13e200b5c49d4.zip
external_llvm-ad390dec76dd009d85d19562e2f13e200b5c49d4.tar.gz
external_llvm-ad390dec76dd009d85d19562e2f13e200b5c49d4.tar.bz2
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
Diffstat (limited to 'lib/Transforms/Utils/BuildLibCalls.cpp')
-rw-r--r--lib/Transforms/Utils/BuildLibCalls.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/BuildLibCalls.cpp b/lib/Transforms/Utils/BuildLibCalls.cpp
index 309a7bc5..a1c4d5a 100644
--- a/lib/Transforms/Utils/BuildLibCalls.cpp
+++ b/lib/Transforms/Utils/BuildLibCalls.cpp
@@ -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;