Replace OwningPtr<T> with std::unique_ptr<T>.
[oota-llvm.git] / tools / llvm-lto / llvm-lto.cpp
index d984773cddbdb04f4b1bed835a11f061b406a23b..ec3f0fa23333bae4bfe25ba2edb95f2647515f0d 100644 (file)
@@ -95,8 +95,8 @@ int main(int argc, char **argv) {
 
   for (unsigned i = BaseArg; i < InputFilenames.size(); ++i) {
     std::string error;
-    OwningPtr<LTOModule> Module(LTOModule::makeLTOModule(InputFilenames[i].c_str(),
-                                                         Options, error));
+    std::unique_ptr<LTOModule> Module(
+        LTOModule::makeLTOModule(InputFilenames[i].c_str(), Options, error));
     if (!error.empty()) {
       errs() << argv[0] << ": error loading file '" << InputFilenames[i]
              << "': " << error << "\n";