mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Replace two release calls with std::move. I missed this on the previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d50598d71
commit
8659ad443a
@ -29,7 +29,7 @@ ObjectFile::createELFObjectFile(std::unique_ptr<MemoryBuffer> &Obj) {
|
||||
#if !LLVM_IS_UNALIGNED_ACCESS_FAST
|
||||
if (MaxAlignment >= 4)
|
||||
R.reset(new ELFObjectFile<ELFType<support::little, 4, false>>(
|
||||
Obj.release(), EC));
|
||||
std::move(Obj), EC));
|
||||
else
|
||||
#endif
|
||||
if (MaxAlignment >= 2)
|
||||
@ -40,7 +40,7 @@ ObjectFile::createELFObjectFile(std::unique_ptr<MemoryBuffer> &Obj) {
|
||||
else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB)
|
||||
#if !LLVM_IS_UNALIGNED_ACCESS_FAST
|
||||
if (MaxAlignment >= 4)
|
||||
R.reset(new ELFObjectFile<ELFType<support::big, 4, false>>(Obj.release(),
|
||||
R.reset(new ELFObjectFile<ELFType<support::big, 4, false>>(std::move(Obj),
|
||||
EC));
|
||||
else
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user