summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:01:16 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-07 00:01:16 +0000
commit83c4b687205e4e81da0602865fbc24350831cf6a (patch)
tree0f99c9543b34f6f8a3133666c196ad2686fcdb1b /llvm/tools
parent27f2447fb32ed08b45dba7bad8260cd5312a5132 (diff)
downloadbcm5719-llvm-83c4b687205e4e81da0602865fbc24350831cf6a.tar.gz
bcm5719-llvm-83c4b687205e4e81da0602865fbc24350831cf6a.zip
ADT: Remove last implicit ilist iterator conversions, NFC
Some implicit ilist iterator conversions have crept back into Analysis, Transforms, Hexagon, and llvm-stress. This removes them. I'll commit a patch immediately after this to disallow them (in a separate patch so that it's easy to revert if necessary). llvm-svn: 252371
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-stress/llvm-stress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-stress/llvm-stress.cpp b/llvm/tools/llvm-stress/llvm-stress.cpp
index 6a1a248a057..86ac269bb0a 100644
--- a/llvm/tools/llvm-stress/llvm-stress.cpp
+++ b/llvm/tools/llvm-stress/llvm-stress.cpp
@@ -666,7 +666,7 @@ static void IntroduceControlFlow(Function *F, Random &R) {
for (auto *Instr : BoolInst) {
BasicBlock *Curr = Instr->getParent();
- BasicBlock::iterator Loc = Instr;
+ BasicBlock::iterator Loc = Instr->getIterator();
BasicBlock *Next = Curr->splitBasicBlock(Loc, "CF");
Instr->moveBefore(Curr->getTerminator());
if (Curr != &F->getEntryBlock()) {
OpenPOWER on IntegriCloud