summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-profdata
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 19:00:17 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-07-08 19:00:17 +0000
commit221847ef63bbe2330675a5c18dfa789d700a23a3 (patch)
treebd933cc574ba2bbd8da105e896b8b062ee264035 /llvm/tools/llvm-profdata
parent3b207c66552297f35a3c8045ea979a0f53b08ce1 (diff)
downloadbcm5719-llvm-221847ef63bbe2330675a5c18dfa789d700a23a3.tar.gz
bcm5719-llvm-221847ef63bbe2330675a5c18dfa789d700a23a3.zip
AMDGPU: Make infinite loop clear, NFC
Change a while loop that was checking for nullptr on an iterator-to-pointer conversion to an infinite for loop. Now it's clear that the condition doesn't terminate. The only change in behaviour is if an invalid iterator (holding nullptr) was passed into AMDGPUCFGStructurizer::reversePredicateSetter. There are only two callers, and they both dereference the iterator before sending it in, so rather than adding an early return to avoid the loop I've just asserted (using a static_cast, to avoid an implicit conversion to pointer). llvm-svn: 274902
Diffstat (limited to 'llvm/tools/llvm-profdata')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud