diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-05-02 17:29:55 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-05-02 17:29:55 +0000 |
commit | bc46f624cdeb7f863c0c5b189658e78f27fd0dd7 (patch) | |
tree | db5768b934f1b418c5deca3adf5e14652c483487 | |
parent | dbd24b45933be18b2bc933bea7714695030a6644 (diff) | |
download | bcm5719-llvm-bc46f624cdeb7f863c0c5b189658e78f27fd0dd7.tar.gz bcm5719-llvm-bc46f624cdeb7f863c0c5b189658e78f27fd0dd7.zip |
ScheduleDAGInstrs.cpp: Don't peel the iterator when it points the end. This will fix the crash in r268143.
llvm-svn: 268257
-rw-r--r-- | llvm/lib/CodeGen/ScheduleDAGInstrs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp index bcff1f6f6ab..34cebaed240 100644 --- a/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp +++ b/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp @@ -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. |