[ARM,AArch64] Do not tail-call to an externally-defined function with weak linkage
[oota-llvm.git] / lib / ExecutionEngine / MCJIT / MCJIT.cpp
index c60f366f8b8d916e4530d3e5c9a85e174d14ec49..8c6db75487f524d3f028c83c41b63b38d3d0f8a5 100644 (file)
@@ -157,7 +157,7 @@ ObjectBufferStream* MCJIT::emitObject(Module *M) {
   if (ObjCache) {
     // MemoryBuffer is a thin wrapper around the actual memory, so it's OK
     // to create a temporary object here and delete it after the call.
-    std::unique_ptr<MemoryBuffer> MB(CompiledObject->getMemBuffer());
+    std::unique_ptr<MemoryBuffer> MB = CompiledObject->getMemBuffer();
     ObjCache->notifyObjectCompiled(M, MB.get());
   }