fix a wrong assert in StackNesting

This commit is contained in:
Erik Eckstein
2017-03-30 09:32:44 -07:00
parent 9921286a83
commit c41de405c4

View File

@@ -119,7 +119,8 @@ bool StackNesting::solve() {
// More locations are alive around the StackInst's location.
// Update the AlivaLocs bitset, which contains all those alive
// locations.
assert(Bits.test(BitNr) && "no dealloc found for alloc stack");
assert((Bits.test(BitNr) || (!BI.ExitReachable && !Bits.any()))
&& "no dealloc found for alloc stack");
StackLocs[BitNr].AliveLocs = Bits;
changed = true;
isNested = true;