diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-27 13:24:16 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-07-27 13:24:16 +0000 |
commit | e5a22f44b83a1802efe699590471126cc4206e12 (patch) | |
tree | 7f7891dfc02380a2b504c8229f9fa9fa0764c270 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 79a947c2336c9cf12a588844d39422c9aa0a5658 (diff) | |
download | llvm-e5a22f44b83a1802efe699590471126cc4206e12.zip llvm-e5a22f44b83a1802efe699590471126cc4206e12.tar.gz llvm-e5a22f44b83a1802efe699590471126cc4206e12.tar.bz2 |
PowerPC: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to
MachineInstr* in the PowerPC backend, mainly by preferring MachineInstr&
over MachineInstr* when a pointer isn't nullable and using range-based
for loops.
There was one piece of questionable code in PPCInstrInfo::AnalyzeBranch,
where a condition checked a pointer converted from an iterator for
nullptr. Since this case is impossible (moreover, the code above
guarantees that the iterator is valid), I removed the check when I
changed the pointer to a reference.
Despite that case, there should be no functionality change here.
llvm-svn: 276864
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions