diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-01 16:21:48 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-01 16:21:48 +0000 |
commit | b77911be0209447f080fd61e72914cb1c559d419 (patch) | |
tree | 83784a0cf44308790a104805d6a320d931af2915 /lldb/packages/Python/lldbsuite/support/encoded_file.py | |
parent | ccfadeb20fee735fe8de2dcdd13b6d05e7ab0e94 (diff) | |
download | bcm5719-llvm-b77911be0209447f080fd61e72914cb1c559d419.tar.gz bcm5719-llvm-b77911be0209447f080fd61e72914cb1c559d419.zip |
CodeGen: Use MachineInstr& in ScheduleDAGIntrs, NFC
Use MachineInstr& to avoid implicit conversions from
MachineBasicBlock::iterator to MachineInstr*. In one case, this could
use a range-based for loop, but the other loops iterated in reverse
order.
One of the reverse-loops checked the MachineInstr* for nullptr, a
condition that is provably unreachable. (And even if my proof has a
flaw, UBSan would catch the bug.)
llvm-svn: 274360
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/encoded_file.py')
0 files changed, 0 insertions, 0 deletions