mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
BrainF.cpp: Update CreateCall() according to r237624.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237669 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -201,7 +201,8 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb,
|
|||||||
case SYM_READ:
|
case SYM_READ:
|
||||||
{
|
{
|
||||||
//%tape.%d = call i32 @getchar()
|
//%tape.%d = call i32 @getchar()
|
||||||
CallInst *getchar_call = builder->CreateCall(getchar_func, tapereg);
|
CallInst *getchar_call =
|
||||||
|
builder->CreateCall(getchar_func, {}, tapereg);
|
||||||
getchar_call->setTailCall(false);
|
getchar_call->setTailCall(false);
|
||||||
Value *tape_0 = getchar_call;
|
Value *tape_0 = getchar_call;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user