Remove a condition that can never be true, as wittnessed by the assert
authorAdrian Prantl <aprantl@apple.com>
Tue, 12 Aug 2014 21:55:58 +0000 (21:55 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 12 Aug 2014 21:55:58 +0000 (21:55 +0000)
above.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index d55a12d691fd966dceac4407aa0afd551b0f295d..e671faf48b12ed3f395ca99087aab47880c1acba 100644 (file)
@@ -1239,9 +1239,8 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
     assert(Begin->isDebugValue() && "Invalid History entry");
 
     // Check if a variable is inaccessible in this range.
     assert(Begin->isDebugValue() && "Invalid History entry");
 
     // Check if a variable is inaccessible in this range.
-    if (!Begin->isDebugValue() ||
-        (Begin->getNumOperands() > 1 && Begin->getOperand(0).isReg() &&
-         !Begin->getOperand(0).getReg())) {
+    if (Begin->getNumOperands() > 1 &&
+        Begin->getOperand(0).isReg() && !Begin->getOperand(0).getReg()) {
       OpenRanges.clear();
       continue;
     }
       OpenRanges.clear();
       continue;
     }