[llvm] e0a6093 - [ORC] Fix a missing move in ce2207abaf9.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 20:15:06 PST 2020
Author: Lang Hames
Date: 2020-01-21T20:14:50-08:00
New Revision: e0a6093a744d16c90eafa62d7143ce41806b2466
URL: https://github.com/llvm/llvm-project/commit/e0a6093a744d16c90eafa62d7143ce41806b2466
DIFF: https://github.com/llvm/llvm-project/commit/e0a6093a744d16c90eafa62d7143ce41806b2466.diff
LOG: [ORC] Fix a missing move in ce2207abaf9.
This should fix the build failure at
http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/32524
and others.
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp b/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
index 8d2c2d9c1298..160e5ba50311 100644
--- a/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
@@ -37,7 +37,7 @@ irManglingOptionsFromTargetOptions(const TargetOptions &Opts) {
Expected<SimpleCompiler::CompileResult> SimpleCompiler::operator()(Module &M) {
CompileResult CachedObject = tryToLoadFromObjectCache(M);
if (CachedObject)
- return CachedObject;
+ return std::move(CachedObject);
SmallVector<char, 0> ObjBufferSV;
More information about the llvm-commits
mailing list