mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
Enable assertion to detect cyclic valno references.
This changes the stack overflow in PR6363 to an assertion failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
455080ff10
commit
b1ce7b1324
@ -1864,7 +1864,7 @@ static unsigned ComputeUltimateVN(VNInfo *VNI,
|
||||
// If the VN has already been computed, just return it.
|
||||
if (ThisValNoAssignments[VN] >= 0)
|
||||
return ThisValNoAssignments[VN];
|
||||
// assert(ThisValNoAssignments[VN] != -2 && "Cyclic case?");
|
||||
assert(ThisValNoAssignments[VN] != -2 && "Cyclic value numbers");
|
||||
|
||||
// If this val is not a copy from the other val, then it must be a new value
|
||||
// number in the destination.
|
||||
|
Loading…
Reference in New Issue
Block a user