fix some examples
[oota-llvm.git] / examples / BrainF / BrainF.cpp
index 54f35535b57d60b2e08cccfd753b262b89ec4ab5..264afa281315659d386cc37b21db3e0bcfbe7871 100644 (file)
@@ -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);