From: Francois Pichet Date: Tue, 12 Jul 2011 08:43:36 +0000 (+0000) Subject: Fix the BrainF build. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a3d57e69802bf02a58e2fba8efd122929c67f5d2;p=oota-llvm.git Fix the BrainF build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134975 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/BrainF/BrainF.cpp b/examples/BrainF/BrainF.cpp index 264afa28131..54f35535b57 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);