Skip to content

Commit d1f510c

Browse files
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.
1 parent f7cddf8 commit d1f510c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Semantics/canonicalize-omp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CanonicalizationOfOmp {
9292
nextIt = it;
9393
while (++nextIt != block.end()) {
9494
// Ignore compiler directives.
95-
if (auto *directive{GetConstructIf<parser::CompilerDirective>(*nextIt)})
95+
if (GetConstructIf<parser::CompilerDirective>(*nextIt))
9696
continue;
9797

9898
if (auto *doCons{GetConstructIf<parser::DoConstruct>(*nextIt)}) {

0 commit comments

Comments
 (0)