[llvm] r237669 - BrainF.cpp: Update CreateCall() according to r237624.
NAKAMURA Takumi
geek4civic at gmail.com
Mon May 18 23:50:19 PDT 2015
Author: chapuni
Date: Tue May 19 01:50:19 2015
New Revision: 237669
URL: http://llvm.org/viewvc/llvm-project?rev=237669&view=rev
Log:
BrainF.cpp: Update CreateCall() according to r237624.
Modified:
llvm/trunk/examples/BrainF/BrainF.cpp
Modified: llvm/trunk/examples/BrainF/BrainF.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/BrainF/BrainF.cpp?rev=237669&r1=237668&r2=237669&view=diff
==============================================================================
--- llvm/trunk/examples/BrainF/BrainF.cpp (original)
+++ llvm/trunk/examples/BrainF/BrainF.cpp Tue May 19 01:50:19 2015
@@ -201,7 +201,8 @@ void BrainF::readloop(PHINode *phi, Basi
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;
More information about the llvm-commits
mailing list