Linker: Remove implicit ilist iterator conversion, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Oct 2015 22:23:36 +0000 (22:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Oct 2015 22:23:36 +0000 (22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250748 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Linker/LinkModules.cpp

index 27fdef467959fc33fd06dd77e61663aea9e06f30..94b12aae1f09f1519fce99801669bcf8b79dcd7d 100644 (file)
@@ -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;
   }