summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-07-12 08:43:36 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-07-12 08:43:36 +0000
commita3d57e69802bf02a58e2fba8efd122929c67f5d2 (patch)
tree0c8eb68d47446b35fecbfb0f9d7a9539f69d2d63 /examples
parent4e47aadd9642e0dde0c25bdf730a4d1b75bce396 (diff)
downloadllvm-a3d57e69802bf02a58e2fba8efd122929c67f5d2.tar.gz
llvm-a3d57e69802bf02a58e2fba8efd122929c67f5d2.tar.bz2
llvm-a3d57e69802bf02a58e2fba8efd122929c67f5d2.tar.xz
Fix the BrainF build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/BrainF/BrainF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp
index 264afa2813..54f35535b5 100644
--- a/examples/BrainF/BrainF.cpp
+++ b/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)
- Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
+ const Type *Tys[] = { Type::getInt8PtrTy(C), Type::getInt32Ty(C) };
Function *memset_func = Intrinsic::getDeclaration(module, Intrinsic::memset,
Tys, 2);