Skip to content

Commit da57ced

Browse files
committed
[examples] Remove unused variable 'BB' in BrainF.cpp (NFC)
/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.
1 parent ca723f2 commit da57ced

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/examples/BrainF/BrainF.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ void BrainF::header(LLVMContext& C) {
8989

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

0 commit comments

Comments
 (0)