]> granicus.if.org Git - clang/commitdiff
Use unique_ptr instead of OwningPtr. I'm not certain how this compiled.
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Aug 2014 15:30:35 +0000 (15:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Aug 2014 15:30:35 +0000 (15:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216552 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/AnalysisContext.h

index f0f4fda99e3e1abae31332c1d464bc7808ba17a8..0ebdf15f2c4efecc824d706c927099928b2b701a 100644 (file)
@@ -20,7 +20,6 @@
 #include "clang/Analysis/CodeInjector.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/FoldingSet.h"
-#include "llvm/ADT/OwningPtr.h"
 #include "llvm/Support/Allocator.h"
 #include <memory>
 
@@ -411,7 +410,7 @@ class AnalysisDeclContextManager {
 
   /// Pointer to an interface that can provide function bodies for
   /// declarations from external source.
-  llvm::OwningPtr<CodeInjector> Injector;
+  std::unique_ptr<CodeInjector> Injector;
   
   /// Flag to indicate whether or not bodies should be synthesized
   /// for well-known functions.