mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
CreateIntCast takes an "isSigned" parameter. Pass "true" for it, rather than
a name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
746d546877
commit
f63c41033a
@ -259,6 +259,7 @@ Value *LibCallOptimization::EmitPutChar(Value *Char, IRBuilder<> &B) {
|
||||
CallInst *CI = B.CreateCall(PutChar,
|
||||
B.CreateIntCast(Char,
|
||||
Type::getInt32Ty(*Context),
|
||||
/*isSigned*/true,
|
||||
"chari"),
|
||||
"putchar");
|
||||
|
||||
@ -303,7 +304,8 @@ void LibCallOptimization::EmitFPutC(Value *Char, Value *File, IRBuilder<> &B) {
|
||||
Type::getInt32Ty(*Context),
|
||||
Type::getInt32Ty(*Context),
|
||||
File->getType(), NULL);
|
||||
Char = B.CreateIntCast(Char, Type::getInt32Ty(*Context), "chari");
|
||||
Char = B.CreateIntCast(Char, Type::getInt32Ty(*Context), /*isSigned*/true,
|
||||
"chari");
|
||||
CallInst *CI = B.CreateCall2(F, Char, File, "fputc");
|
||||
|
||||
if (const Function *Fn = dyn_cast<Function>(F->stripPointerCasts()))
|
||||
|
Loading…
Reference in New Issue
Block a user