1
0
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:
NAKAMURA Takumi 2016-05-02 17:29:55 +00:00
parent f0cc027b2e
commit d5f8ef08da

View File

@ -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.