From 45292480f4ad44fb9578b1e6c0f8a9fd155018b4 Mon Sep 17 00:00:00 2001 From: Mats Petersson Date: Tue, 13 Feb 2024 12:05:51 +0000 Subject: [PATCH] Fix warning by removing unused variable --- flang/lib/Semantics/canonicalize-omp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/Semantics/canonicalize-omp.cpp b/flang/lib/Semantics/canonicalize-omp.cpp index 01adcf5372842..0481b3d41f501 100644 --- a/flang/lib/Semantics/canonicalize-omp.cpp +++ b/flang/lib/Semantics/canonicalize-omp.cpp @@ -92,7 +92,7 @@ class CanonicalizationOfOmp { nextIt = it; while (++nextIt != block.end()) { // Ignore compiler directives. - if (auto *directive{GetConstructIf(*nextIt)}) + if (GetConstructIf(*nextIt)) continue; if (auto *doCons{GetConstructIf(*nextIt)}) {