[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp

Chris Lattner sabre at nondot.org
Sun Apr 8 11:11:44 PDT 2007



Changes in directory llvm/lib/Transforms/IPO:

SimplifyLibCalls.cpp updated: 1.109 -> 1.110
---
Log message:

Fix a typo that broke SimplifyLibCalls/SPrintF.ll (pr1315: http://llvm.org/PR1315 )


---
Diffs of the changes:  (+1 -1)

 SimplifyLibCalls.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.109 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.110
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.109	Sun Apr  8 02:00:35 2007
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp	Sun Apr  8 13:11:26 2007
@@ -1342,7 +1342,7 @@
       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),






More information about the llvm-commits mailing list