Skip to content

Commit

Permalink
[flang] Remove unused variable lastPrivBlock (NFC)
Browse files Browse the repository at this point in the history
This fixes the warning:

  llvm-project/flang/lib/Lower/OpenMP.cpp:94:10: error: unused
  variable 'lastPrivBlock' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Jul 26, 2022
1 parent df344e1 commit 2aab797
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion flang/lib/Lower/OpenMP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2aab797

Please sign in to comment.