From b8a705305562a8312e6d63ced9c8237d9fae21f3 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 10 Sep 2014 04:53:53 +0000 Subject: Unique_ptrify PPCallbacks ownership. Unique_ptr creation stil needs to be moved earlier at some of the call sites. llvm-svn: 217474 --- clang/unittests/Basic/SourceManagerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/unittests/Basic/SourceManagerTest.cpp') diff --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp index 8f066ba8b82..1dda54dff14 100644 --- a/clang/unittests/Basic/SourceManagerTest.cpp +++ b/clang/unittests/Basic/SourceManagerTest.cpp @@ -303,7 +303,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { PP.Initialize(*Target); std::vector Macros; - PP.addPPCallbacks(new MacroTracker(Macros)); + PP.addPPCallbacks(llvm::make_unique(Macros)); PP.EnterMainSourceFile(); -- cgit v1.2.3