mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Fix use-after-move introduced in r217065 and caught in post-commit review by Alexey.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91c286e4ed
commit
1e57caed15
@ -104,9 +104,9 @@ void MCJIT::addObjectFile(std::unique_ptr<object::ObjectFile> Obj) {
|
||||
if (!LoadedObject || Dyld.hasError())
|
||||
report_fatal_error(Dyld.getErrorString());
|
||||
|
||||
LoadedObjects.push_back(std::move(LoadedObject));
|
||||
|
||||
NotifyObjectEmitted(*LoadedObject);
|
||||
|
||||
LoadedObjects.push_back(std::move(LoadedObject));
|
||||
}
|
||||
|
||||
void MCJIT::addObjectFile(object::OwningBinary<object::ObjectFile> Obj) {
|
||||
|
Loading…
Reference in New Issue
Block a user