summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitccc50d7cf49bc9af543129849851932d2485d129 (patch)
treea9b0e66621673eed5c30c25c3af44d600eb26109 /llvm/examples
parente5802234f9340a49bcdf7854f7e80d2977c8f558 (diff)
downloadbcm5719-llvm-ccc50d7cf49bc9af543129849851932d2485d129.tar.gz
bcm5719-llvm-ccc50d7cf49bc9af543129849851932d2485d129.zip
Fix the BrainF build.
llvm-svn: 134975
Diffstat (limited to 'llvm/examples')
-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 264afa28131..54f35535b57 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)
- 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);
OpenPOWER on IntegriCloud