mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
RestructureCFG: introduce soft failure
Soft fail for `ContinueBackedges` size.
This commit is contained in:
@@ -793,7 +793,12 @@ bool restructureCFG(Function &F, ASTTree &AST) {
|
||||
}
|
||||
}
|
||||
|
||||
// The following should be an assert, but since the backend is in
|
||||
// maintenance mode, we have an early return to propagate an early failure.
|
||||
// Verify that we found at least one backedge
|
||||
if (not(ContinueBackedges.size() > 0)) {
|
||||
return false;
|
||||
}
|
||||
revng_assert(ContinueBackedges.size() > 0);
|
||||
|
||||
revng_assert(Head != nullptr);
|
||||
|
||||
Reference in New Issue
Block a user