File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -976,8 +976,8 @@ void OmpStructureChecker::Leave(const parser::OpenMPLoopConstruct &x) {
976976 dirContext_.pop_back ();
977977
978978 assert (!loopStack_.empty () && " Expecting non-empty loop stack" );
979- const LoopConstruct &top{loopStack_.back ()};
980979#ifndef NDEBUG
980+ const LoopConstruct &top{loopStack_.back ()};
981981 auto *loopc{std::get_if<const parser::OpenMPLoopConstruct *>(&top)};
982982 assert (loopc != nullptr && *loopc == &x && " Mismatched loop constructs" );
983983#endif
@@ -4438,8 +4438,8 @@ void OmpStructureChecker::Enter(const parser::DoConstruct &x) {
44384438
44394439void OmpStructureChecker::Leave (const parser::DoConstruct &x) {
44404440 assert (!loopStack_.empty () && " Expecting non-empty loop stack" );
4441- const LoopConstruct &top = loopStack_.back ();
44424441#ifndef NDEBUG
4442+ const LoopConstruct &top = loopStack_.back ();
44434443 auto *doc{std::get_if<const parser::DoConstruct *>(&top)};
44444444 assert (doc != nullptr && *doc == &x && " Mismatched loop constructs" );
44454445#endif
You can’t perform that action at this time.
0 commit comments