[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:
Joseph Huber 2022-08-23 08:44:13 -05:00
parent f7dc91ad56
commit ea0549d41b
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ extractOffloadFiles(MemoryBufferRef Contents) {
Binaries.emplace_back(std::move(*BinaryOrErr));
}
return Binaries;
return std::move(Binaries);
}
static Error unbundleImages() {