[clang] ea0869c - [clang][parse] Fix build of ParseHLSLRootSignatureTest.cpp
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 4 10:20:52 PDT 2025
Author: Jan Svoboda
Date: 2025-04-04T10:20:44-07:00
New Revision: ea0869ccb9a80e235f6f47eaa47fb1d5888d660a
URL: https://github.com/llvm/llvm-project/commit/ea0869ccb9a80e235f6f47eaa47fb1d5888d660a
DIFF: https://github.com/llvm/llvm-project/commit/ea0869ccb9a80e235f6f47eaa47fb1d5888d660a.diff
LOG: [clang][parse] Fix build of ParseHLSLRootSignatureTest.cpp
Fallout from PR #133467.
Added:
Modified:
clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp b/clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp
index acdf455a5d6aa..19d5b267f310a 100644
--- a/clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp
+++ b/clang/unittests/Parse/ParseHLSLRootSignatureTest.cpp
@@ -84,11 +84,9 @@ class ParseHLSLRootSignatureTest : public ::testing::Test {
HeaderSearchOptions SearchOpts;
HeaderSearch HeaderInfo(SearchOpts, SourceMgr, Diags, LangOpts,
Target.get());
- std::unique_ptr<Preprocessor> PP = std::make_unique<Preprocessor>(
- std::make_shared<PreprocessorOptions>(), Diags, LangOpts, SourceMgr,
- HeaderInfo, ModLoader,
- /*IILookup =*/nullptr,
- /*OwnsHeaderSearch =*/false);
+ auto PP = std::make_unique<Preprocessor>(
+ PPOpts, Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader,
+ /*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false);
PP->Initialize(*Target);
PP->EnterMainSourceFile();
return PP;
@@ -101,6 +99,7 @@ class ParseHLSLRootSignatureTest : public ::testing::Test {
DiagnosticsEngine Diags;
SourceManager SourceMgr;
LangOptions LangOpts;
+ PreprocessorOptions PPOpts;
std::shared_ptr<TargetOptions> TargetOpts;
IntrusiveRefCntPtr<TargetInfo> Target;
};
More information about the cfe-commits
mailing list