[Flang][OpenMP] Fix unused variable warning for task depend
This patch fixes an unused variable warning that was caused by the task
depend patch.
Original Commit: 3373c8405c5e144567c2b25c28b54b4ac63b09b6
Original Differential Revision: https://reviews.llvm.org/D146766
GitOrigin-RevId: e0fed043662cb2410858ad82002f22e64ee552dd
diff --git a/lib/Lower/OpenMP.cpp b/lib/Lower/OpenMP.cpp
index 94bd8fb..2a3fc19 100644
--- a/lib/Lower/OpenMP.cpp
+++ b/lib/Lower/OpenMP.cpp
@@ -1193,11 +1193,9 @@
if (const Fortran::parser::Name *name =
std::get_if<Fortran::parser::Name>(&designator.u)) {
sym = name->symbol;
- } else if (const Fortran::common::Indirection<
- Fortran::parser::ArrayElement> *a =
- std::get_if<Fortran::common::Indirection<
- Fortran::parser::ArrayElement>>(
- &designator.u)) {
+ } else if (std::get_if<Fortran::common::Indirection<
+ Fortran::parser::ArrayElement>>(
+ &designator.u)) {
TODO(converter.getCurrentLocation(),
"array sections not supported for task depend");
}