aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 21:10:58 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 21:10:58 +0000
commit68f499a6fa5e3b52b08f920f61d6f73f9aa57bcf (patch)
tree576c80781509c5034f3733463f3ac5f7c621ee7a /clang/lib/CodeGen/CodeGenModule.cpp
parent1002373946a7c8452cd1a75b4f67515b49b43e3f (diff)
downloadllvm-68f499a6fa5e3b52b08f920f61d6f73f9aa57bcf.zip
llvm-68f499a6fa5e3b52b08f920f61d6f73f9aa57bcf.tar.gz
llvm-68f499a6fa5e3b52b08f920f61d6f73f9aa57bcf.tar.bz2
NVPTX: Avoid implicit iterator conversions, NFC
Avoid implicit conversions from MachineInstrBundleIterator to MachineInstr* in the NVPTX 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 NVPTXInstrInfo::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: 274931
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions