| commit | 41cf73ce16c016a02d875364a56e127b4cdf46e8 | [log] [tgz] |
|---|---|---|
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Aug 16 21:46:03 2016 +0000 |
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Aug 16 21:46:03 2016 +0000 |
| tree | b5266305dfabc0bd54211694d69a81b3e06f26a5 | |
| parent | 904cd39b0562cec4a53adc02307af64189306e08 [diff] |
CodeGen: Don't dereference end() in MachineBasicBlock::CorrectExtraCFGEdges The current MachineBasicBlock might be the last block, so FallThru may be past the end(). Use getNextNode(), which will convert to nullptr, rather than &*++, which is invalid if we reach the end(). llvm-svn: 278858