Revert rGff3fe145fe48 "Fix gcc9 "moving a local object in a return statement prevents copy elision" Wpessimizing-move warning."

Fix buildbots
This commit is contained in:
Simon Pilgrim 2020-01-17 16:03:21 +00:00
parent ff3fe145fe
commit 88cdeaa531
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ private:
if (auto Sym = LD.findSymbol(BaseLayer, MangledName, false))
continue;
else if (auto Err = Sym.takeError())
return Err;
return std::move(Err);
}
// Record all functions defined by this module.