1
0
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:
David Blaikie 2014-09-04 18:37:31 +00:00
parent 2824fa8c01
commit 972416a84e

View File

@ -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) {