[PATCH] D124009: [BOLT] Fix build with GCC 7.3.0
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 03:48:36 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG63686af1e1d1: [BOLT] Fix build with GCC 7.3.0 (authored by yota9).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124009/new/
https://reviews.llvm.org/D124009
Files:
bolt/lib/Core/BinaryContext.cpp
bolt/lib/Rewrite/MachORewriteInstance.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
Index: bolt/lib/Rewrite/RewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/RewriteInstance.cpp
+++ bolt/lib/Rewrite/RewriteInstance.cpp
@@ -363,7 +363,7 @@
auto RI = std::make_unique<RewriteInstance>(File, Argc, Argv, ToolPath, Err);
if (Err)
return std::move(Err);
- return RI;
+ return std::move(RI);
}
RewriteInstance::RewriteInstance(ELFObjectFileBase *File, const int Argc,
Index: bolt/lib/Rewrite/MachORewriteInstance.cpp
===================================================================
--- bolt/lib/Rewrite/MachORewriteInstance.cpp
+++ bolt/lib/Rewrite/MachORewriteInstance.cpp
@@ -91,7 +91,7 @@
std::make_unique<MachORewriteInstance>(InputFile, ToolPath, Err);
if (Err)
return std::move(Err);
- return MachORI;
+ return std::move(MachORI);
}
MachORewriteInstance::MachORewriteInstance(object::MachOObjectFile *InputFile,
Index: bolt/lib/Core/BinaryContext.cpp
===================================================================
--- bolt/lib/Core/BinaryContext.cpp
+++ bolt/lib/Core/BinaryContext.cpp
@@ -251,7 +251,7 @@
BC->HasFixedLoadAddress = !IsPIC;
- return BC;
+ return std::move(BC);
}
bool BinaryContext::forceSymbolRelocations(StringRef SymbolName) const {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124009.424139.patch
Type: text/x-patch
Size: 1286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220421/7b5dd58c/attachment.bin>
More information about the llvm-commits
mailing list