]> granicus.if.org Git - clang/commitdiff
One other BuryPointer of a unique_ptr cleanup.
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 17:02:26 +0000 (17:02 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 17:02:26 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216743 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/cc1_main.cpp

index bea02d9d6d4fbf628a28a996b83245e9a44e4e1c..fa1a10e96356b39e6a33662638128997e747a2af 100644 (file)
@@ -122,7 +122,7 @@ int cc1_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) {
   if (Clang->getFrontendOpts().DisableFree) {
     if (llvm::AreStatisticsEnabled() || Clang->getFrontendOpts().ShowStats)
       llvm::PrintStatistics();
-    BuryPointer(Clang.release());
+    BuryPointer(std::move(Clang));
     return !Success;
   }