forked from OSchip/llvm-project
If 'other' was empty 'overlapsFrom(other, other.begin());' will segfault. This avoids that.
llvm-svn: 109075
This commit is contained in:
parent
6d48476446
commit
1cb63afb44
|
@ -465,6 +465,8 @@ namespace llvm {
|
|||
/// overlaps - Return true if the intersection of the two live intervals is
|
||||
/// not empty.
|
||||
bool overlaps(const LiveInterval& other) const {
|
||||
if (other.empty())
|
||||
return false;
|
||||
return overlapsFrom(other, other.begin());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue