Try to fix the build for C++ standard libraries missing std::map::emplace
[oota-llvm.git] / lib / AsmParser / LLParser.cpp
index 497b4972e68012fb564ca9526fdffbb9bbf5ce62..d1d379242e0427d9d9e6018df124c05e2a6b1853 100644 (file)
@@ -2609,9 +2609,8 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
     if (!F) {
       // Make a global variable as a placeholder for this reference.
       GlobalValue *&FwdRef =
-          ForwardRefBlockAddresses.emplace(std::piecewise_construct,
-                                           std::forward_as_tuple(std::move(Fn)),
-                                           std::forward_as_tuple())
+          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)