From ee8b879822d3a17025a614a95420b3cf3c0e424a Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 12 Aug 2014 21:55:58 +0000 Subject: [PATCH] Remove a condition that can never be true, as wittnessed by the assert above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215477 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index d55a12d691f..e671faf48b1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1239,9 +1239,8 @@ DwarfDebug::buildLocationList(SmallVectorImpl &DebugLoc, 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; } -- 2.34.1