aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveInterval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r--lib/CodeGen/LiveInterval.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp
index 18faacf445..50d8a25936 100644
--- a/lib/CodeGen/LiveInterval.cpp
+++ b/lib/CodeGen/LiveInterval.cpp
@@ -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;
}