aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Lex/LexerTest.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-01-05 19:11:36 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-01-05 19:11:36 +0000
commite3041688531925319b16b89e183e8ef275e2aeb0 (patch)
tree1d7e5462f2cea98fb96423848698008a6741920e /clang/unittests/Lex/LexerTest.cpp
parentf95113dacf2b16a74dfb034a9cc32ba08cade14d (diff)
downloadllvm-e3041688531925319b16b89e183e8ef275e2aeb0.zip
llvm-e3041688531925319b16b89e183e8ef275e2aeb0.tar.gz
llvm-e3041688531925319b16b89e183e8ef275e2aeb0.tar.bz2
Move PreprocessorOptions to std::shared_ptr from IntrusiveRefCntPtr
llvm-svn: 291160
Diffstat (limited to 'clang/unittests/Lex/LexerTest.cpp')
-rw-r--r--clang/unittests/Lex/LexerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Lex/LexerTest.cpp b/clang/unittests/Lex/LexerTest.cpp
index 2046018..9ae1ffa 100644
--- a/clang/unittests/Lex/LexerTest.cpp
+++ b/clang/unittests/Lex/LexerTest.cpp
@@ -66,8 +66,8 @@ protected:
VoidModuleLoader ModLoader;
HeaderSearch HeaderInfo(new HeaderSearchOptions, SourceMgr, Diags, LangOpts,
Target.get());
- Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr,
- HeaderInfo, ModLoader, /*IILookup =*/nullptr,
+ Preprocessor PP(std::make_shared<PreprocessorOptions>(), Diags, LangOpts,
+ SourceMgr, HeaderInfo, ModLoader, /*IILookup =*/nullptr,
/*OwnsHeaderSearch =*/false);
PP.Initialize(*Target);
PP.EnterMainSourceFile();