Fix abc_new pass when not in NDEBUG

This commit is contained in:
Mike Inouye 2025-11-21 14:10:05 -08:00 committed by GitHub
parent bf70581efa
commit 615e338acd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ std::vector<Module*> order_modules(Design *design, std::vector<Module *> modules
sort.edge(submodule, m);
}
}
log_assert(sort.sort());
bool sorted = sort.sort();
log_assert(sorted);
return sort.sorted;
}