diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -222,9 +222,7 @@ &clause.u)) { genAllocateClause(converter, allocateClause->v, allocatorOperands, allocateOperands); - } else if (const auto &privateClause = - std::get_if( - &clause.u)) { + } else if (std::get_if(&clause.u)) { // TODO: Handle private. This cannot be a hard TODO because testing for // allocate clause requires private variables. } else {