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:
Jakob Stoklund Olesen 2010-02-21 18:51:48 +00:00
parent 90d554ecb3
commit 951d27e544
1 changed files with 1 additions and 1 deletions

View File

@ -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.