From: Kazu Hirata Date: Tue, 26 Jul 2022 03:52:22 +0000 (-0700) Subject: [flang] Remove unused variable lastPrivBlock (NFC) X-Git-Tag: upstream/15.0.7~485 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2aab797d011bf24ee91635bbe903e6ebe635723a;p=platform%2Fupstream%2Fllvm.git [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] --- diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp index 9494286..0016d8c 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;