mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
ScheduleDAGInstrs.cpp: Don't peel the iterator when it points the end. This will fix the crash in r268143.
llvm-svn: 268257
This commit is contained in:
parent
f0cc027b2e
commit
d5f8ef08da
@ -825,7 +825,7 @@ void ScheduleDAGInstrs::insertBarrierChain(Value2SUsMap &map) {
|
||||
}
|
||||
|
||||
// Remove also the BarrierChain from list if present.
|
||||
if (*SUItr == BarrierChain)
|
||||
if (SUItr != SUEE && *SUItr == BarrierChain)
|
||||
SUItr++;
|
||||
|
||||
// Remove all SUs that are now successors of BarrierChain.
|
||||
|
Loading…
Reference in New Issue
Block a user