Skip to content

Commit 4355671

Browse files
committed
[seq] Fix unused sorting assertion
1 parent 7c3125c commit 4355671

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/nacs-seq/env.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ NACS_INTERNAL bool Env::optimize_global()
608608
return a->m_varid > b->m_varid;
609609
});
610610
#ifndef NDEBUG
611-
std::is_sorted(branches.begin(), branches.end(), [&] (Var *a, Var *b) {
611+
assert(std::is_sorted(branches.begin(), branches.end(), [&] (Var *a, Var *b) {
612612
return a->m_varid > b->m_varid;
613-
});
613+
}));
614614
assert(branches.front() == root);
615615
#endif
616616
// Now the branches are in the reverse order that we'll evaluate them

0 commit comments

Comments
 (0)