summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-08 18:11:26 +0000
committerChris Lattner <sabre@nondot.org>2007-04-08 18:11:26 +0000
commit51047859ed6b365c0951a3eaac3550a37580f2d2 (patch)
treece19919ad559a8d5df5ea51c1ff67ec38ce2bcb1 /lib/Transforms/IPO/SimplifyLibCalls.cpp
parent6091ebd172a16a10f1ea66061a5fa7cbf5139e56 (diff)
downloadllvm-51047859ed6b365c0951a3eaac3550a37580f2d2.tar.gz
llvm-51047859ed6b365c0951a3eaac3550a37580f2d2.tar.bz2
llvm-51047859ed6b365c0951a3eaac3550a37580f2d2.tar.xz
Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/SimplifyLibCalls.cpp')
-rw-r--r--lib/Transforms/IPO/SimplifyLibCalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index 7d65028601..87c1480fba 100644
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -1342,7 +1342,7 @@ public:
return false;
// Get the second character and switch on its value
- switch (FormatStr[2]) {
+ switch (FormatStr[1]) {
case 'c': {
// sprintf(dest,"%c",chr) -> store chr, dest
Value *V = CastInst::createTruncOrBitCast(CI->getOperand(3),