[flang-commits] [flang] 2aab797 - [flang] Remove unused variable lastPrivBlock (NFC)
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Mon Jul 25 20:52:27 PDT 2022
Author: Kazu Hirata
Date: 2022-07-25T20:52:22-07:00
New Revision: 2aab797d011bf24ee91635bbe903e6ebe635723a
URL: https://github.com/llvm/llvm-project/commit/2aab797d011bf24ee91635bbe903e6ebe635723a
DIFF: https://github.com/llvm/llvm-project/commit/2aab797d011bf24ee91635bbe903e6ebe635723a.diff
LOG: [flang] Remove unused variable lastPrivBlock (NFC)
This fixes the warning:
llvm-project/flang/lib/Lower/OpenMP.cpp:94:10: error: unused
variable 'lastPrivBlock' [-Werror,-Wunused-variable]
Added:
Modified:
flang/lib/Lower/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index 9494286d7ca05..0016d8c77ea66 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -91,7 +91,6 @@ static bool privatizeVars(Op &op, Fortran::lower::AbstractConverter &converter,
firOpBuilder.setInsertionPointToStart(firOpBuilder.getAllocaBlock());
bool hasFirstPrivateOp = false;
bool hasLastPrivateOp = false;
- Block *lastPrivBlock = nullptr;
// We need just one ICmpOp for multiple LastPrivate clauses.
mlir::arith::CmpIOp cmpOp;
More information about the flang-commits
mailing list