Skip to content

Commit

Permalink
[examples] Remove unused variable 'BB' in BrainF.cpp (NFC)
Browse files Browse the repository at this point in the history
/Users/jiefu/llvm-project/llvm/examples/BrainF/BrainF.cpp:92:15: error: unused variable 'BB' [-Werror,-Wunused-variable]
  BasicBlock* BB = builder->GetInsertBlock();
              ^
1 error generated.
  • Loading branch information
DamonFool committed Sep 19, 2023
1 parent ca723f2 commit da57ced
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llvm/examples/BrainF/BrainF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void BrainF::header(LLVMContext& C) {

//%arr = malloc i8, i32 %d
ConstantInt *val_mem = ConstantInt::get(C, APInt(32, memtotal));
BasicBlock* BB = builder->GetInsertBlock();
Type* IntPtrTy = IntegerType::getInt32Ty(C);
Type* Int8Ty = IntegerType::getInt8Ty(C);
Constant* allocsize = ConstantExpr::getSizeOf(Int8Ty);
Expand Down

0 comments on commit da57ced

Please sign in to comment.