mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix use-after-move introduced in r217065 and caught in post-commit review by Alexey.
llvm-svn: 217181
This commit is contained in:
parent
2824fa8c01
commit
972416a84e
@ -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…
x
Reference in New Issue
Block a user