summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2014-08-12 21:55:58 +0000
committerAdrian Prantl <aprantl@apple.com>2014-08-12 21:55:58 +0000
commit5e1fa85ec665a3339296ef8ba66db9db7a0c6c17 (patch)
treefe77e72ad64bb902478428fa3419d48eed97a134 /llvm/lib/CodeGen
parent788674f96469aa977ef3f070cb039dbf845351a1 (diff)
downloadbcm5719-llvm-5e1fa85ec665a3339296ef8ba66db9db7a0c6c17.tar.gz
bcm5719-llvm-5e1fa85ec665a3339296ef8ba66db9db7a0c6c17.zip
Remove a condition that can never be true, as wittnessed by the assert
above. llvm-svn: 215477
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index d55a12d691f..e671faf48b1 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1239,9 +1239,8 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &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;
}
OpenPOWER on IntegriCloud