From: Adrian Prantl Date: Tue, 12 Aug 2014 21:55:58 +0000 (+0000) Subject: Remove a condition that can never be true, as wittnessed by the assert X-Git-Tag: v01.01.07.01~5130 X-Git-Url: https://git.ti.com/gitweb?p=opencl%2Fllvm.git;a=commitdiff_plain;h=ee8b879822d3a17025a614a95420b3cf3c0e424a 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 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index d55a12d691..e671faf48b 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; }