summaryrefslogtreecommitdiffstats
path: root/llvm/examples/BrainF
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@boostpro.com>2011-07-11 22:39:46 +0000
committerJohn Wiegley <johnw@boostpro.com>2011-07-11 22:39:46 +0000
commit2a0177ba4c7288ee1fddac012a84b05b5a108115 (patch)
tree85ed180aeb1361bfe650cce0fb5c57c607d30f87 /llvm/examples/BrainF
parent2e12550e373fb90c6fca93d58e2c36114457019e (diff)
downloadbcm5719-llvm-2a0177ba4c7288ee1fddac012a84b05b5a108115.tar.gz
bcm5719-llvm-2a0177ba4c7288ee1fddac012a84b05b5a108115.zip
fix some examples
llvm-svn: 134933
Diffstat (limited to 'llvm/examples/BrainF')
-rw-r--r--llvm/examples/BrainF/BrainF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index 54f35535b57..264afa28131 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/examples/BrainF/BrainF.cpp
@@ -55,7 +55,7 @@ void BrainF::header(LLVMContext& C) {
//Function prototypes
//declare void @llvm.memset.p0i8.i32(i8 *, i8, i32, i32, i1)
- const Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
+ Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
Tys, 2);
OpenPOWER on IntegriCloud