r279114 - Removed use of 'emplace' on std::map, since not all buildbot slaves support it

Cameron Desrochers via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 18 11:41:42 PDT 2016


Author: cameron314
Date: Thu Aug 18 13:41:41 2016
New Revision: 279114

URL: http://llvm.org/viewvc/llvm-project?rev=279114&view=rev
Log:
Removed use of 'emplace' on std::map, since not all buildbot slaves support it

Modified:
    cfe/trunk/unittests/libclang/LibclangTest.cpp

Modified: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=279114&r1=279113&r2=279114&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (original)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Thu Aug 18 13:41:41 2016
@@ -397,9 +397,9 @@ public:
       llvm::sys::path::append(Path, Filename);
       Filename = Path.str();
     }
-    auto it = UnsavedFileContents.emplace(
+    auto it = UnsavedFileContents.insert(std::make_pair(
         fixed_addr_string(new std::string(Filename)),
-        fixed_addr_string(new std::string(Contents)));
+        fixed_addr_string(new std::string(Contents))));
     UnsavedFiles.push_back({
         it.first->first->c_str(),   // filename
         it.first->second->c_str(),  // contents




More information about the cfe-commits mailing list