update for recent api changes. I have a hard time believing that this is actually...
authorChris Lattner <sabre@nondot.org>
Mon, 18 Jul 2011 04:52:58 +0000 (04:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 18 Jul 2011 04:52:58 +0000 (04:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135374 91177308-0d34-0410-b5e6-96231b3b80d8

examples/BrainF/BrainF.cpp

index 67af099d1d3aecb1ff914dbc4cafceb3f3b7000e..cd9a1408715d707a14b78d6c7a991dfdf5a0a5d5 100644 (file)
@@ -80,8 +80,8 @@ void BrainF::header(LLVMContext& C) {
   //%arr = malloc i8, i32 %d
   ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
   BasicBlock* BB = builder->GetInsertBlock();
-  const Type* IntPtrTy = IntegerType::getInt32Ty(C);
-  const Type* Int8Ty = IntegerType::getInt8Ty(C);
+  Type* IntPtrTy = IntegerType::getInt32Ty(C);
+  Type* Int8Ty = IntegerType::getInt8Ty(C);
   Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty);
   allocsize = ConstantExpr::getTruncOrBitCast(allocsize, IntPtrTy);
   ptr_arr = CallInst::CreateMalloc(BB, IntPtrTy, Int8Ty, allocsize, val_mem,