forked from OSchip/llvm-project
llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr(ty...), according to r233938.
llvm-svn: 233983
This commit is contained in:
parent
d05ba3aae3
commit
696f275954
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue