diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-04-02 22:44:00 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-04-02 22:44:00 +0000 |
commit | 7d4d5d39cf73f5dde0e73c54dd57e9c6a4f2180f (patch) | |
tree | 1c84b87dc3d03e1168113a072bc5d8afa3844cc8 /examples/BrainF | |
parent | 0f8f086e21ed1852884dfc281248fcba72059f49 (diff) |
llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr(ty...), according to r233938.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/BrainF')
-rw-r--r-- | examples/BrainF/BrainF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index f8129b819e3..81c48b9ef8a 100644 --- a/examples/BrainF/BrainF.cpp +++ b/examples/BrainF/BrainF.cpp @@ -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 |