[llvm] b26e44e - [NFC] Fixing error on some versions of GCC
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 13:16:39 PDT 2022
Author: Chris Bieneman
Date: 2022-05-02T15:16:30-05:00
New Revision: b26e44e623c75c084e865084b18541c6a1736df2
URL: https://github.com/llvm/llvm-project/commit/b26e44e623c75c084e865084b18541c6a1736df2
DIFF: https://github.com/llvm/llvm-project/commit/b26e44e623c75c084e865084b18541c6a1736df2.diff
LOG: [NFC] Fixing error on some versions of GCC
Some versions of GCC don't implicitly move Error to Expected.
Added:
Modified:
llvm/lib/Object/DXContainer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Object/DXContainer.cpp b/llvm/lib/Object/DXContainer.cpp
index 05d7bc6264a4b..e1aea56296f63 100644
--- a/llvm/lib/Object/DXContainer.cpp
+++ b/llvm/lib/Object/DXContainer.cpp
@@ -39,6 +39,6 @@ Error DXContainer::parseHeader() {
Expected<DXContainer> DXContainer::create(MemoryBufferRef Object) {
DXContainer Container(Object);
if (Error Err = Container.parseHeader())
- return Err;
+ return std::move(Err);
return Container;
}
More information about the llvm-commits
mailing list