Skip to content

Commit 1066eb5

Browse files
[flang] Fix a warning
This patch fixes: flang/lib/Lower/OpenMP/OpenMP.cpp:2346:14: error: unused variable 'origDirective' [-Werror,-Wunused-variable]
1 parent 596a9c1 commit 1066eb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
23522352

23532353
assert(llvm::omp::blockConstructSet.test(origDirective) &&
23542354
"Expected block construct");
2355+
(void)origDirective;
23552356

23562357
for (const Clause &clause : clauses) {
23572358
mlir::Location clauseLocation = converter.genLocation(clause.source);

0 commit comments

Comments
 (0)