summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-c-test/llvm-c-test.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 18:26:20 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 18:26:20 +0000
commit25b132e93b2b8b99c91463d381ac13a522048a61 (patch)
tree574c742b3cd7be664882afa68fcc95ed5007dd4d /llvm/tools/llvm-c-test/llvm-c-test.h
parent3e2576f9682e72faa87025a349be5b34c8f9585f (diff)
downloadbcm5719-llvm-25b132e93b2b8b99c91463d381ac13a522048a61.tar.gz
bcm5719-llvm-25b132e93b2b8b99c91463d381ac13a522048a61.zip
Target: Avoid getFirstTerminator() => pointer, NFC
Stop using an implicit conversion from the return of MachineBasicBlock::getFirstTerminator to MachineInstr*. In two cases, directly dereference to a MachineInstr& since later code assumes it's valid. In a third case, change to an iterator since later code checks against MachineBasicBlock::end. Although the fix for the third case avoids undefined behaviour, I expect this doesn't cause a functionality change in practice (since the basic block already has a terminator). llvm-svn: 274898
Diffstat (limited to 'llvm/tools/llvm-c-test/llvm-c-test.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud