[C++11] Replace OwningPtr::take() with OwningPtr::release().
[oota-llvm.git] / lib / LTO / LTOCodeGenerator.cpp
index 87ea01f92619e8a33eda7518c59ade79b8d2c557..d6ca41b8df8688f9aa93393a53116f5afda3226a 100644 (file)
@@ -270,7 +270,7 @@ const void* LTOCodeGenerator::compile(size_t* length,
     sys::fs::remove(NativeObjectPath);
     return NULL;
   }
-  NativeObjectFile = BuffPtr.take();
+  NativeObjectFile = BuffPtr.release();
 
   // remove temp files
   sys::fs::remove(NativeObjectPath);