From 989a95d395d758ba99408e70d034e49c7a65993d Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 19 Oct 2015 22:23:36 +0000 Subject: [PATCH] Linker: Remove implicit ilist iterator conversion, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250748 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 27fdef467959f..94b12aae1f09f 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -1219,7 +1219,7 @@ bool ModuleLinker::linkFunctionBody(Function &Dst, Function &Src) { DI->setName(Arg.getName()); // Copy the name over. // Add a mapping to our mapping. - ValueMap[&Arg] = DI; + ValueMap[&Arg] = &*DI; ++DI; }