llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr(ty...), according to r233938.

llvm-svn: 233983
This commit is contained in:
NAKAMURA Takumi 2015-04-02 22:44:00 +00:00
parent d05ba3aae3
commit 696f275954
1 changed files with 1 additions and 1 deletions

View File

@ -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