File tree 1 file changed +2
-2
lines changed 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) {
976
976
dirContext_.pop_back ();
977
977
978
978
assert (!loopStack_.empty () && " Expecting non-empty loop stack" );
979
- const LoopConstruct &top{loopStack_.back ()};
980
979
#ifndef NDEBUG
980
+ const LoopConstruct &top{loopStack_.back ()};
981
981
auto *loopc{std::get_if<const parser::OpenMPLoopConstruct *>(&top)};
982
982
assert (loopc != nullptr && *loopc == &x && " Mismatched loop constructs" );
983
983
#endif
@@ -4438,8 +4438,8 @@ void OmpStructureChecker::Enter(const parser::DoConstruct &x) {
4438
4438
4439
4439
void OmpStructureChecker::Leave (const parser::DoConstruct &x) {
4440
4440
assert (!loopStack_.empty () && " Expecting non-empty loop stack" );
4441
- const LoopConstruct &top = loopStack_.back ();
4442
4441
#ifndef NDEBUG
4442
+ const LoopConstruct &top = loopStack_.back ();
4443
4443
auto *doc{std::get_if<const parser::DoConstruct *>(&top)};
4444
4444
assert (doc != nullptr && *doc == &x && " Mismatched loop constructs" );
4445
4445
#endif
You can’t perform that action at this time.
0 commit comments