mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
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
This commit is contained in:
parent
6ea7f36872
commit
ee8b879822
@ -1239,9 +1239,8 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
|
|||||||
assert(Begin->isDebugValue() && "Invalid History entry");
|
assert(Begin->isDebugValue() && "Invalid History entry");
|
||||||
|
|
||||||
// Check if a variable is inaccessible in this range.
|
// Check if a variable is inaccessible in this range.
|
||||||
if (!Begin->isDebugValue() ||
|
if (Begin->getNumOperands() > 1 &&
|
||||||
(Begin->getNumOperands() > 1 && Begin->getOperand(0).isReg() &&
|
Begin->getOperand(0).isReg() && !Begin->getOperand(0).getReg()) {
|
||||||
!Begin->getOperand(0).getReg())) {
|
|
||||||
OpenRanges.clear();
|
OpenRanges.clear();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user