summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2020-01-21 20:12:10 -0800
committerHans Wennborg <hans@chromium.org>2020-01-29 21:50:16 +0100
commit32056b4eb87258884074f7f635bccd40fc44852c (patch)
tree69bcc5072009c56e5832d65db65c7ed867dd746d /llvm/lib/ExecutionEngine
parent32723d572077e9a3776553a2067563974e85e7c8 (diff)
downloadbcm5719-llvm-32056b4eb87258884074f7f635bccd40fc44852c.tar.gz
bcm5719-llvm-32056b4eb87258884074f7f635bccd40fc44852c.zip
[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)
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp b/llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp
index 8d2c2d9c129..160e5ba5031 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;
OpenPOWER on IntegriCloud