[flang] Remove unused variable lastPrivBlock (NFC)
authorKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 03:52:22 +0000 (20:52 -0700)
committerKazu Hirata <kazu@google.com>
Tue, 26 Jul 2022 03:52:22 +0000 (20:52 -0700)
This fixes the warning:

  llvm-project/flang/lib/Lower/OpenMP.cpp:94:10: error: unused
  variable 'lastPrivBlock' [-Werror,-Wunused-variable]

flang/lib/Lower/OpenMP.cpp

index 9494286..0016d8c 100644 (file)
@@ -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;