CodeGen: Remove implicit ilist iterator conversions, NFC

Make ilist iterator conversions explicit in clangCodeGen.  Eventually
I'll remove them everywhere.

llvm-svn: 252358
This commit is contained in:
Duncan P. N. Exon Smith
2015-11-06 23:00:41 +00:00
parent b8f58b53dd
commit 9f5260ab13
11 changed files with 30 additions and 28 deletions

View File

@@ -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();
}