projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70b3ac
)
BrainF.cpp: Update CreateCall() according to r237624.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 19 May 2015 06:50:19 +0000
(06:50 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 19 May 2015 06:50:19 +0000
(06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237669
91177308
-0d34-0410-b5e6-
96231b3b80d8
examples/BrainF/BrainF.cpp
patch
|
blob
|
history
diff --git
a/examples/BrainF/BrainF.cpp
b/examples/BrainF/BrainF.cpp
index 81c48b9ef8a8afddc8cee970ef72276bfbd9253b..8026adc8d075ae6165b0a7feede2542ab326ad50 100644
(file)
--- 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;