Fix with a bit more care. (but only a bit)
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Aug 2015 20:55:00 +0000 (20:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 3 Aug 2015 20:55:00 +0000 (20:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index d1d379242e0427d9d9e6018df124c05e2a6b1853..f098babb9f4e5092a1dc478b453803a348a79740 100644 (file)
@@ -2609,8 +2609,9 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
     if (!F) {
       // Make a global variable as a placeholder for this reference.
       GlobalValue *&FwdRef =
-          ForwardRefBlockAddresses.insert(std::make_pair, std::move(Fn),
-                                          std::map<ValID, GlobalValue *>())
+          ForwardRefBlockAddresses.insert(std::make_pair(
+                                              std::move(Fn),
+                                              std::map<ValID, GlobalValue *>()))
               .first->second.insert(std::make_pair(std::move(Label), nullptr))
               .first->second;
       if (!FwdRef)