Fix order of eval problem from when I refactored this into a function.

llvm-svn: 23844
This commit is contained in:
Chris Lattner 2005-10-20 16:56:40 +00:00
parent eb0ad1863b
commit 35852fc391
1 changed files with 2 additions and 3 deletions

View File

@ -111,12 +111,11 @@ static inline bool NontrivialOverlap(const LiveRange &I, const LiveRange &J,
if (I.ValId != iIdx || J.ValId != jIdx)
return true;
} else if (I.start < J.start) {
if (I.end > J.start && I.ValId != iIdx || J.ValId != jIdx) {
if (I.end > J.start && (I.ValId != iIdx || J.ValId != jIdx)) {
return true;
}
} else {
if (J.end > I.start &&
I.ValId != iIdx || J.ValId != jIdx)
if (J.end > I.start && (I.ValId != iIdx || J.ValId != jIdx))
return true;
}