Add an assertion to make PR7542 fail consistently.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Jul 2010 19:56:28 +0000 (19:56 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 13 Jul 2010 19:56:28 +0000 (19:56 +0000)
commit6382d2caddb98f30f556b43faa898ff675affaf7
treeeb2c9253dafe33b7ab2651ccce6a88afc15d9803
parent1005bc5068345e28826a32cc081dd4667af978ff
Add an assertion to make PR7542 fail consistently.

LiveInterval::overlapsFrom dereferences end() if it is called on an empty
interval.

It would be reasonable to just return false - an empty interval doesn't overlap
anything, but I want to know who is doing it first.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveInterval.cpp