From: David Blaikie Date: Thu, 4 Sep 2014 18:37:31 +0000 (+0000) Subject: Fix use-after-move introduced in r217065 and caught in post-commit review by Alexey. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1e57caed152c08f2de1d6224553b1d6f9e3967d5;p=oota-llvm.git 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 --- diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index f172b58df47..3dd205751d1 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -104,9 +104,9 @@ void MCJIT::addObjectFile(std::unique_ptr 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 Obj) {