diff options
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/WasmObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 2e42324..348cb56 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -58,9 +58,9 @@ ObjectFile::createWasmObjectFile(MemoryBufferRef Buffer) { Error Err = Error::success(); auto ObjectFile = std::make_unique<WasmObjectFile>(Buffer, Err); if (Err) - return std::move(Err); + return Err; - return std::move(ObjectFile); + return ObjectFile; } #define VARINT7_MAX ((1 << 7) - 1) |