Fix order of eval problem from when I refactored this into a function.
authorChris Lattner <sabre@nondot.org>
Thu, 20 Oct 2005 16:56:40 +0000 (16:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 20 Oct 2005 16:56:40 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23844 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveInterval.cpp

index 18faacf44502f16e297297309414fc35b4393132..50d8a2593673f07c9b77bf8efcd6e5c2474e5261 100644 (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;
   }