diff options
Diffstat (limited to 'clang/unittests/Lex/ModuleDeclStateTest.cpp')
-rw-r--r-- | clang/unittests/Lex/ModuleDeclStateTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/unittests/Lex/ModuleDeclStateTest.cpp b/clang/unittests/Lex/ModuleDeclStateTest.cpp index 16e726b..5b2719d 100644 --- a/clang/unittests/Lex/ModuleDeclStateTest.cpp +++ b/clang/unittests/Lex/ModuleDeclStateTest.cpp @@ -77,11 +77,10 @@ protected: HeaderInfo.emplace(HSOpts, SourceMgr, Diags, LangOpts, Target.get()); - return std::make_unique<Preprocessor>( - std::make_shared<PreprocessorOptions>(), Diags, LangOpts, SourceMgr, - *HeaderInfo, ModLoader, - /*IILookup =*/nullptr, - /*OwnsHeaderSearch =*/false); + return std::make_unique<Preprocessor>(PPOpts, Diags, LangOpts, SourceMgr, + *HeaderInfo, ModLoader, + /*IILookup=*/nullptr, + /*OwnsHeaderSearch=*/false); } void preprocess(Preprocessor &PP, std::unique_ptr<PPCallbacks> C) { @@ -103,6 +102,7 @@ protected: TrivialModuleLoader ModLoader; HeaderSearchOptions HSOpts; std::optional<HeaderSearch> HeaderInfo; + PreprocessorOptions PPOpts; }; TEST_F(ModuleDeclStateTest, NamedModuleInterface) { |