[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jun 16 11:37:27 PDT 2006
Changes in directory llvm/lib/Transforms/IPO:
SimplifyLibCalls.cpp updated: 1.66 -> 1.67
---
Log message:
Add missing casts. This fixed some regressions.
---
Diffs of the changes: (+2 -2)
SimplifyLibCalls.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.66 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.67
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.66 Fri Jun 16 03:36:35 2006
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp Fri Jun 16 13:37:15 2006
@@ -1340,7 +1340,7 @@
if (!puts_func)
return false;
std::vector<Value*> args;
- args.push_back(ci->getOperand(2));
+ args.push_back(CastToCStr(ci->getOperand(2), *ci));
new CallInst(puts_func,args,ci->getName(),ci);
ci->replaceAllUsesWith(ConstantSInt::get(Type::IntTy,len));
break;
@@ -1474,7 +1474,7 @@
if (!fputs_func)
return false;
std::vector<Value*> args;
- args.push_back(ci->getOperand(3));
+ args.push_back(CastToCStr(ci->getOperand(3), *ci));
args.push_back(ci->getOperand(1));
new CallInst(fputs_func,args,ci->getName(),ci);
ci->replaceAllUsesWith(ConstantSInt::get(Type::IntTy,len));
More information about the llvm-commits
mailing list