diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-08 18:11:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-08 18:11:26 +0000 |
commit | 51047859ed6b365c0951a3eaac3550a37580f2d2 (patch) | |
tree | ce19919ad559a8d5df5ea51c1ff67ec38ce2bcb1 /lib/Transforms/IPO/SimplifyLibCalls.cpp | |
parent | 6091ebd172a16a10f1ea66061a5fa7cbf5139e56 (diff) | |
download | llvm-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.cpp | 2 |
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), |