diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-08-31 14:22:23 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-09-05 13:23:53 -0700 |
commit | 8e0c9bb91f484b7d2fa86c01919d96a41a7071d7 (patch) | |
tree | 20ce486d07cf609dccfea8df2b2be6a5be31243b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5746002ebb9c3d02be408edf13c2edc39aecf591 (diff) | |
download | llvm-8e0c9bb91f484b7d2fa86c01919d96a41a7071d7.zip llvm-8e0c9bb91f484b7d2fa86c01919d96a41a7071d7.tar.gz llvm-8e0c9bb91f484b7d2fa86c01919d96a41a7071d7.tar.bz2 |
[clang] NFCI: Change returned AnalyzerOptions smart pointer to reference
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e9e2445..11ffb3d 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -140,7 +140,7 @@ CompilerInvocationRefBase::CompilerInvocationRefBase( DiagnosticOpts(new DiagnosticOptions(X.getDiagnosticOpts())), HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())), PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())), - AnalyzerOpts(new AnalyzerOptions(*X.getAnalyzerOpts())) {} + AnalyzerOpts(new AnalyzerOptions(X.getAnalyzerOpts())) {} CompilerInvocationRefBase::CompilerInvocationRefBase( CompilerInvocationRefBase &&X) = default; @@ -4385,7 +4385,7 @@ bool CompilerInvocation::CreateFromArgsImpl( ParseFileSystemArgs(Res.getFileSystemOpts(), Args, Diags); ParseMigratorArgs(Res.getMigratorOpts(), Args, Diags); - ParseAnalyzerArgs(*Res.getAnalyzerOpts(), Args, Diags); + ParseAnalyzerArgs(Res.getAnalyzerOpts(), Args, Diags); ParseDiagnosticArgs(Res.getDiagnosticOpts(), Args, &Diags, /*DefaultDiagColor=*/false); ParseFrontendArgs(Res.getFrontendOpts(), Args, Diags, LangOpts.IsHeaderFile); |