Skip to content

Commit 38c502b

Browse files
committed
[flang] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build
Fix the warning from D122483. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D123455
1 parent 7004643 commit 38c502b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flang/lib/Lower/OpenMP.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
222222
&clause.u)) {
223223
genAllocateClause(converter, allocateClause->v, allocatorOperands,
224224
allocateOperands);
225-
} else if (const auto &privateClause =
226-
std::get_if<Fortran::parser::OmpClause::Private>(
227-
&clause.u)) {
225+
} else if (std::get_if<Fortran::parser::OmpClause::Private>(&clause.u)) {
228226
// TODO: Handle private. This cannot be a hard TODO because testing for
229227
// allocate clause requires private variables.
230228
} else {

0 commit comments

Comments
 (0)