summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-06 23:00:41 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-11-06 23:00:41 +0000
commit9f5260ab1350519b6569e67e0cf30a265f02dd20 (patch)
tree956c0cc6bfb897642e7b9b02e57185a264a14d7e /clang/lib/CodeGen/CodeGenModule.cpp
parentb8f58b53dd3b3cbecf6946b0ce6fc9923db9223a (diff)
downloadbcm5719-llvm-9f5260ab1350519b6569e67e0cf30a265f02dd20.tar.gz
bcm5719-llvm-9f5260ab1350519b6569e67e0cf30a265f02dd20.zip
CodeGen: Remove implicit ilist iterator conversions, NFC
Make ilist iterator conversions explicit in clangCodeGen. Eventually I'll remove them everywhere. llvm-svn: 252358
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 911953437bd..5d7794e4a30 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -235,7 +235,8 @@ void CodeGenModule::applyReplacements() {
OldF->replaceAllUsesWith(Replacement);
if (NewF) {
NewF->removeFromParent();
- OldF->getParent()->getFunctionList().insertAfter(OldF, NewF);
+ OldF->getParent()->getFunctionList().insertAfter(OldF->getIterator(),
+ NewF);
}
OldF->eraseFromParent();
}
OpenPOWER on IntegriCloud