Author: Lang Hames Date: 2020-01-29T21:50:16+01:00 New Revision: 32056b4eb87258884074f7f635bccd40fc44852c
URL: https://github.com/llvm/llvm-project/commit/32056b4eb87258884074f7f635bccd40fc44852c DIFF: https://github.com/llvm/llvm-project/commit/32056b4eb87258884074f7f635bccd40fc44852c.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. (cherry picked from commit e0a6093a744d16c90eafa62d7143ce41806b2466) 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; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits