Skip to content

Commit 0d15081

Browse files
[flang] Fix a warning
This patch fixes: flang/lib/Lower/OpenMP/OpenMP.cpp:599:15: error: unused variable 'ompEval' [-Werror,-Wunused-variable]
1 parent 1dbc982 commit 0d15081

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
600600
assert(ompEval &&
601601
llvm::omp::allTargetSet.test(extractOmpDirective(*ompEval)) &&
602602
"expected TARGET construct evaluation");
603+
(void)ompEval;
603604

604605
// Use the whole list of clauses passed to the construct here, rather than the
605606
// ones only applied to omp.target.

0 commit comments

Comments
 (0)