diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-18 04:52:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-18 04:52:58 +0000 |
commit | 805d09459df33da12c3dc3cf6ab7806baebbe4c8 (patch) | |
tree | 59bddb559a3274d68f4ed74c81f7fcc29d0c0c6e | |
parent | 6b8eb8cd71c3753ab8d87d1da442be5d7480f4bb (diff) | |
download | bcm5719-llvm-805d09459df33da12c3dc3cf6ab7806baebbe4c8.tar.gz bcm5719-llvm-805d09459df33da12c3dc3cf6ab7806baebbe4c8.zip |
update for recent api changes. I have a hard time believing that this is actually a useful example.
llvm-svn: 135374
-rw-r--r-- | llvm/examples/BrainF/BrainF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp index 67af099d1d3..cd9a1408715 100644 --- a/llvm/examples/BrainF/BrainF.cpp +++ b/llvm/examples/BrainF/BrainF.cpp @@ -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, |