[llvm] da57ced - [examples] Remove unused variable 'BB' in BrainF.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 00:46:51 PDT 2023
Author: Jie Fu
Date: 2023-09-19T15:46:08+08:00
New Revision: da57ced76dbb48dd91a3b9221a00e8afc079ddc9
URL: https://github.com/llvm/llvm-project/commit/da57ced76dbb48dd91a3b9221a00e8afc079ddc9
DIFF: https://github.com/llvm/llvm-project/commit/da57ced76dbb48dd91a3b9221a00e8afc079ddc9.diff
LOG: [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.
Added:
Modified:
llvm/examples/BrainF/BrainF.cpp
Removed:
################################################################################
diff --git a/llvm/examples/BrainF/BrainF.cpp b/llvm/examples/BrainF/BrainF.cpp
index 7ea136a9bc29105..8f09d1d016ea591 100644
--- a/llvm/examples/BrainF/BrainF.cpp
+++ b/llvm/examples/BrainF/BrainF.cpp
@@ -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);
More information about the llvm-commits
mailing list