mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 08:07:51 +00:00
ScheduleDAGInstrs.cpp: Don't peel the iterator when it points the end. This will fix the crash in r268143.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e477250a6
commit
1be8ec9b75
@ -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…
x
Reference in New Issue
Block a user