projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
llvm/examples/BrainF: Give an explicit pointee type to ConstantExpr::getGetElementPtr...
[oota-llvm.git]
/
examples
/
BrainF
/
BrainF.cpp
diff --git
a/examples/BrainF/BrainF.cpp
b/examples/BrainF/BrainF.cpp
index f8129b819e3a6da2a3081a0a140a44a8232816f6..81c48b9ef8a8afddc8cee970ef72276bfbd9253b 100644
(file)
--- 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