[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
This commit is contained in:
PeixinQiao 2022-04-09 23:57:50 +08:00
parent 70046438d0
commit 38c502b6c7

View File

@ -222,9 +222,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
&clause.u)) {
genAllocateClause(converter, allocateClause->v, allocatorOperands,
allocateOperands);
} else if (const auto &privateClause =
std::get_if<Fortran::parser::OmpClause::Private>(
&clause.u)) {
} else if (std::get_if<Fortran::parser::OmpClause::Private>(&clause.u)) {
// TODO: Handle private. This cannot be a hard TODO because testing for
// allocate clause requires private variables.
} else {