Skip to content

Commit bcfdab8

Browse files
[flang] Fix a warning
This patch fixes: flang/lib/Lower/OpenACC.cpp:1964:15: error: unused variable 'loopDirective' [-Werror,-Wunused-variable]
1 parent 309dcc1 commit bcfdab8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Lower/OpenACC.cpp

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

19751975
assert(loopDirective.v == llvm::acc::ACCD_loop &&
19761976
"Unsupported OpenACC loop construct");
1977+
(void)loopDirective;
19771978

19781979
const auto &accClauseList =
19791980
std::get<Fortran::parser::AccClauseList>(beginLoopDirective.t);

0 commit comments

Comments
 (0)