aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendAction.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-04-29 10:37:37 -0700
committerGitHub <noreply@github.com>2025-04-29 10:37:37 -0700
commitc85e43bd45fee5de106d79965db484339b5cc46f (patch)
tree1a8a698334d01238f3491b2ac07414c3b99f8240 /clang/lib/Frontend/FrontendAction.cpp
parent0f90a7b323bcaa087be31aa135b71694db2d5ff9 (diff)
downloadllvm-c85e43bd45fee5de106d79965db484339b5cc46f.zip
llvm-c85e43bd45fee5de106d79965db484339b5cc46f.tar.gz
llvm-c85e43bd45fee5de106d79965db484339b5cc46f.tar.bz2
[clang] Hide the `LangOptions` pointer from `CompilerInvocation` (#137675)
This PR makes `CompilerInvocation` the sole owner of the `LangOptions` instance.
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 783d1a64..9b2aa25 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -847,7 +847,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
std::unique_ptr<ASTUnit> AST = ASTUnit::LoadFromASTFile(
InputFile, CI.getPCHContainerReader(), ASTUnit::LoadEverything, Diags,
- CI.getFileSystemOpts(), CI.getHeaderSearchOpts(), CI.getLangOptsPtr());
+ CI.getFileSystemOpts(), CI.getHeaderSearchOpts(), &CI.getLangOpts());
if (!AST)
return false;