From 51047859ed6b365c0951a3eaac3550a37580f2d2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 8 Apr 2007 18:11:26 +0000 Subject: 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 --- lib/Transforms/IPO/SimplifyLibCalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3