Skip to content

Commit e0a6093

Browse files
committed
[ORC] Fix a missing move in ce2207a.
This should fix the build failure at http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/32524 and others.
1 parent c38e425 commit e0a6093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/Orc/CompileUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ irManglingOptionsFromTargetOptions(const TargetOptions &Opts) {
3737
Expected<SimpleCompiler::CompileResult> SimpleCompiler::operator()(Module &M) {
3838
CompileResult CachedObject = tryToLoadFromObjectCache(M);
3939
if (CachedObject)
40-
return CachedObject;
40+
return std::move(CachedObject);
4141

4242
SmallVector<char, 0> ObjBufferSV;
4343

0 commit comments

Comments
 (0)