aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-21 18:51:48 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-02-21 18:51:48 +0000
commitb1ce7b132497e0c05d2201f75d43d0f803ba7f88 (patch)
treee863743321ba3d0f39365b486f049ae0d5e95c94 /lib
parent455080ff100c9383bc2619ae8ad86a02f61c3b00 (diff)
downloadexternal_llvm-b1ce7b132497e0c05d2201f75d43d0f803ba7f88.zip
external_llvm-b1ce7b132497e0c05d2201f75d43d0f803ba7f88.tar.gz
external_llvm-b1ce7b132497e0c05d2201f75d43d0f803ba7f88.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index e7b0cff..dcbbb1a 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -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.