summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/LoopExtractor.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2017-09-22 01:47:41 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2017-09-22 01:47:41 +0000
commit388b012f4e3bdc05278959ce17d815da60c59685 (patch)
treef98b5bb5774657a60e42cdd5a6e7888b0ee838e7 /llvm/lib/Transforms/IPO/LoopExtractor.cpp
parentaff33385d285224af411f3ad474148f8050f9659 (diff)
downloadbcm5719-llvm-388b012f4e3bdc05278959ce17d815da60c59685.tar.gz
bcm5719-llvm-388b012f4e3bdc05278959ce17d815da60c59685.zip
Rename markAsErased to erase, as pointed out in a previous review; NFC
llvm-svn: 313951
Diffstat (limited to 'llvm/lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/LoopExtractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
index c1d46f1ba4c..b499092a1ee 100644
--- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
@@ -143,7 +143,7 @@ bool LoopExtractor::runOnLoop(Loop *L, LPPassManager &) {
Changed = true;
// After extraction, the loop is replaced by a function call, so
// we shouldn't try to run any more loop passes on it.
- LI.markAsErased(L);
+ LI.erase(L);
}
++NumExtracted;
}
OpenPOWER on IntegriCloud