Give a better message for a common assertion failure.
llvm-svn: 17887
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 174b483..8306116 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -214,7 +214,8 @@
// Check to make sure that we are not overlapping two live ranges with
// different ValId's.
assert(B->end <= Start &&
- "Cannot overlap two LiveRanges with differing ValID's");
+ "Cannot overlap two LiveRanges with differing ValID's"
+ " (did you def the same reg twice in a MachineInstr?)");
}
}