forked from OSchip/llvm-project
[OffloadPackager] Add necessary move statement on returned value
Summary: Some older compilers cannot automatically elide the returned vector of unique pointers, causing build errors. This patch explicitly moves the returned value instead which should solve the problem.
This commit is contained in:
parent
f7dc91ad56
commit
ea0549d41b
|
@ -143,7 +143,7 @@ extractOffloadFiles(MemoryBufferRef Contents) {
|
|||
Binaries.emplace_back(std::move(*BinaryOrErr));
|
||||
}
|
||||
|
||||
return Binaries;
|
||||
return std::move(Binaries);
|
||||
}
|
||||
|
||||
static Error unbundleImages() {
|
||||
|
|
Loading…
Reference in New Issue