Skip to content

Commit ea0869c

Browse files
committed
[clang][parse] Fix build of ParseHLSLRootSignatureTest.cpp
Fallout from PR #133467.
1 parent 1688c30 commit ea0869c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,9 @@ class ParseHLSLRootSignatureTest : public ::testing::Test {
8484
HeaderSearchOptions SearchOpts;
8585
HeaderSearch HeaderInfo(SearchOpts, SourceMgr, Diags, LangOpts,
8686
Target.get());
87-
std::unique_ptr<Preprocessor> PP = std::make_unique<Preprocessor>(
88-
std::make_shared<PreprocessorOptions>(), Diags, LangOpts, SourceMgr,
89-
HeaderInfo, ModLoader,
90-
/*IILookup =*/nullptr,
91-
/*OwnsHeaderSearch =*/false);
87+
auto PP = std::make_unique<Preprocessor>(
88+
PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
89+
/*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false);
9290
PP->Initialize(*Target);
9391
PP->EnterMainSourceFile();
9492
return PP;
@@ -101,6 +99,7 @@ class ParseHLSLRootSignatureTest : public ::testing::Test {
10199
DiagnosticsEngine Diags;
102100
SourceManager SourceMgr;
103101
LangOptions LangOpts;
102+
PreprocessorOptions PPOpts;
104103
std::shared_ptr<TargetOptions> TargetOpts;
105104
IntrusiveRefCntPtr<TargetInfo> Target;
106105
};

0 commit comments

Comments
 (0)