From 1e57caed152c08f2de1d6224553b1d6f9e3967d5 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 4 Sep 2014 18:37:31 +0000 Subject: [PATCH] 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 --- lib/ExecutionEngine/MCJIT/MCJIT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {