diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-19 06:50:19 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-19 06:50:19 +0000 |
commit | df11b54057e8b433443776617d87bc8ef459e518 (patch) | |
tree | e7f15f7c9a1871fae50b19e577ddc6c1222888cf /examples/BrainF | |
parent | d70b3aca8e69e52f5683c2c0f351722482f5929f (diff) |
BrainF.cpp: Update CreateCall() according to r237624.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/BrainF')
-rw-r--r-- | examples/BrainF/BrainF.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index 81c48b9ef8a..8026adc8d07 100644 --- a/examples/BrainF/BrainF.cpp +++ b/examples/BrainF/BrainF.cpp @@ -201,7 +201,8 @@ void BrainF::readloop(PHINode *phi, BasicBlock *oldbb, BasicBlock *testbb, case SYM_READ: { //%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); Value *tape_0 = getchar_call; |