aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Petersson <mats.petersson@arm.com>2024-02-13 14:32:26 +0000
committerGitHub <noreply@github.com>2024-02-13 14:32:26 +0000
commitd1f510cca8e966bd1742bf17256bfec99dcdf229 (patch)
tree4f7a8c574d8d634fe37b6fa879a64a50efcab4a4
parentf7cddf80062848fbbb358d7e913650cc550d2547 (diff)
downloadllvm-d1f510cca8e966bd1742bf17256bfec99dcdf229.zip
llvm-d1f510cca8e966bd1742bf17256bfec99dcdf229.tar.gz
llvm-d1f510cca8e966bd1742bf17256bfec99dcdf229.tar.bz2
Fix warning by removing unused variable (#81604)
Apparently, some compilers [correctly] warn that the variable that was created prior to this change is unused. This reemoves the variable.
-rw-r--r--flang/lib/Semantics/canonicalize-omp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Semantics/canonicalize-omp.cpp b/flang/lib/Semantics/canonicalize-omp.cpp
index 01adcf5..0481b3d 100644
--- a/flang/lib/Semantics/canonicalize-omp.cpp
+++ b/flang/lib/Semantics/canonicalize-omp.cpp
@@ -92,7 +92,7 @@ private:
nextIt = it;
while (++nextIt != block.end()) {
// Ignore compiler directives.
- if (auto *directive{GetConstructIf<parser::CompilerDirective>(*nextIt)})
+ if (GetConstructIf<parser::CompilerDirective>(*nextIt))
continue;
if (auto *doCons{GetConstructIf<parser::DoConstruct>(*nextIt)}) {