r216743 - One other BuryPointer of a unique_ptr cleanup.

David Blaikie dblaikie at gmail.com
Fri Aug 29 10:02:27 PDT 2014


Author: dblaikie
Date: Fri Aug 29 12:02:26 2014
New Revision: 216743

URL: http://llvm.org/viewvc/llvm-project?rev=216743&view=rev
Log:
One other BuryPointer of a unique_ptr cleanup.

Modified:
    cfe/trunk/tools/driver/cc1_main.cpp

Modified: cfe/trunk/tools/driver/cc1_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=216743&r1=216742&r2=216743&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1_main.cpp Fri Aug 29 12:02:26 2014
@@ -122,7 +122,7 @@ int cc1_main(ArrayRef<const char *> Argv
   if (Clang->getFrontendOpts().DisableFree) {
     if (llvm::AreStatisticsEnabled() || Clang->getFrontendOpts().ShowStats)
       llvm::PrintStatistics();
-    BuryPointer(Clang.release());
+    BuryPointer(std::move(Clang));
     return !Success;
   }
 





More information about the cfe-commits mailing list