mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
Add missing casts. This fixed some regressions.
llvm-svn: 28834
This commit is contained in:
parent
dfcd07cc4c
commit
884b3a29da
@ -1340,7 +1340,7 @@ public:
|
||||
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 @@ public:
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user