[llvm] r215477 - Remove a condition that can never be true, as wittnessed by the assert
Adrian Prantl
aprantl at apple.com
Tue Aug 12 14:55:58 PDT 2014
Author: adrian
Date: Tue Aug 12 16:55:58 2014
New Revision: 215477
URL: http://llvm.org/viewvc/llvm-project?rev=215477&view=rev
Log:
Remove a condition that can never be true, as wittnessed by the assert
above.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=215477&r1=215476&r2=215477&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Aug 12 16:55:58 2014
@@ -1239,9 +1239,8 @@ DwarfDebug::buildLocationList(SmallVecto
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;
}
More information about the llvm-commits
mailing list