mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
[ConstraintElimination] Verify CS and DFSInStack are in sync.(NFC)
After the main loop is done, we should have one constraint per item in DFSInStack. Otherwise we added a constraint without a proper DFSInStack item.
This commit is contained in:
parent
627b5bda11
commit
39486753d5
@ -352,6 +352,8 @@ static bool eliminateConstraints(Function &F, DominatorTree &DT) {
|
||||
DFSInStack.emplace_back(CB.NumIn, CB.NumOut, CB.Condition, CB.Not);
|
||||
}
|
||||
|
||||
assert(CS.size() == DFSInStack.size() &&
|
||||
"updates to CS and DFSInStack are out of sync");
|
||||
return Changed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user