[llvm] r233983 - llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr(ty...), according to r233938.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Apr 2 15:44:00 PDT 2015
Author: chapuni
Date: Thu Apr 2 17:44:00 2015
New Revision: 233983
URL: http://llvm.org/viewvc/llvm-project?rev=233983&view=rev
Log:
llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr(ty...), according to r233938.
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=233983&r1=233982&r2=233983&view=diff
==============================================================================
--- llvm/trunk/examples/BrainF/BrainF.cpp (original)
+++ llvm/trunk/examples/BrainF/BrainF.cpp Thu Apr 2 17:44:00 2015
@@ -163,7 +163,7 @@ void BrainF::header(LLVMContext& C) {
};
Constant *msgptr = ConstantExpr::
- getGetElementPtr(aberrormsg, gep_params);
+ getGetElementPtr(aberrormsg->getValueType(), aberrormsg, gep_params);
Value *puts_params[] = {
msgptr
More information about the llvm-commits
mailing list