mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
This assertion is too restrictive, it does not apply for dangling dbg value nodes (nodes where dbg.value intrinsic preceds use of the value).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5b80a93f6
commit
3a00ffacdc
@ -619,16 +619,8 @@ MachineBasicBlock *ScheduleDAGSDNodes::EmitSchedule() {
|
||||
// Insert all SDDbgValue's whose order(s) are before "Order".
|
||||
if (!MI)
|
||||
continue;
|
||||
#ifndef NDEBUG
|
||||
unsigned LastDIOrder = 0;
|
||||
#endif
|
||||
for (; DI != DE &&
|
||||
(*DI)->getOrder() >= LastOrder && (*DI)->getOrder() < Order; ++DI) {
|
||||
#ifndef NDEBUG
|
||||
assert((*DI)->getOrder() >= LastDIOrder &&
|
||||
"SDDbgValue nodes must be in source order!");
|
||||
LastDIOrder = (*DI)->getOrder();
|
||||
#endif
|
||||
if ((*DI)->isInvalidated())
|
||||
continue;
|
||||
MachineInstr *DbgMI = Emitter.EmitDbgValue(*DI, VRBaseMap);
|
||||
|
Loading…
Reference in New Issue
Block a user