[lld] r341827 - Buildfix for r341825

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 07:07:12 PDT 2018


Author: aganea
Date: Mon Sep 10 07:07:11 2018
New Revision: 341827

URL: http://llvm.org/viewvc/llvm-project?rev=341827&view=rev
Log:
Buildfix for r341825

Modified:
    lld/trunk/COFF/PDB.cpp

Modified: lld/trunk/COFF/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/PDB.cpp?rev=341827&r1=341826&r2=341827&view=diff
==============================================================================
--- lld/trunk/COFF/PDB.cpp (original)
+++ lld/trunk/COFF/PDB.cpp Mon Sep 10 07:07:11 2018
@@ -340,8 +340,8 @@ Expected<const CVIndexMap&> PDBLinker::m
   auto PrevErr = MissingTypeServerPDBs.find(TSId);
   if (PrevErr != MissingTypeServerPDBs.end())
     return createFileError(
-        TSPath, std::move(make_error<StringError>(PrevErr->second,
-                                                  inconvertibleErrorCode())));
+        TSPath,
+        make_error<StringError>(PrevErr->second, inconvertibleErrorCode()));
 
   // Second, check if we already loaded a PDB with this GUID. Return the type
   // index mapping if we have it.
@@ -384,7 +384,7 @@ Expected<const CVIndexMap&> PDBLinker::m
     std::string ErrMsg;
     raw_string_ostream S(ErrMsg);
     S << E;
-    auto It = MissingTypeServerPDBs.emplace(TSId, S.str());
+    MissingTypeServerPDBs.emplace(TSId, S.str());
 
     return createFileError(TSPath, std::move(E));
   }




More information about the llvm-commits mailing list