forked from OSchip/llvm-project
Enable assertion to detect cyclic valno references.
This changes the stack overflow in PR6363 to an assertion failure. llvm-svn: 96744
This commit is contained in:
parent
90d554ecb3
commit
951d27e544
|
@ -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