mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 20:57:21 +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…
x
Reference in New Issue
Block a user