diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-03-21 14:39:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-21 14:39:50 -0700 |
commit | 72e596f35951e849de9fc739238e84ec1217b939 (patch) | |
tree | 39da3f2eae7c8ccea4fc6038c576c7bdc68bd349 /clang/lib/Frontend/FrontendActions.cpp | |
parent | 896df5c4bf77a9a8933c0a5cfdcabccad4c50471 (diff) | |
download | llvm-72e596f35951e849de9fc739238e84ec1217b939.zip llvm-72e596f35951e849de9fc739238e84ec1217b939.tar.gz llvm-72e596f35951e849de9fc739238e84ec1217b939.tar.bz2 |
[clang] Make `HeaderSearchOptions` references const (#130825)
This PR makes the `HeaderSearchOptions` object referenced by
`HeaderSearch` constant. Depends on #130823.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 1ea4a2e..bf273c8 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -878,7 +878,8 @@ void DumpModuleInfoAction::ExecuteAction() { Preprocessor &PP = CI.getPreprocessor(); DumpModuleInfoListener Listener(Out); - HeaderSearchOptions &HSOpts = PP.getHeaderSearchInfo().getHeaderSearchOpts(); + const HeaderSearchOptions &HSOpts = + PP.getHeaderSearchInfo().getHeaderSearchOpts(); // The FrontendAction::BeginSourceFile () method loads the AST so that much // of the information is already available and modules should have been |