Skip to content

Commit cc52794

Browse files
committed
[Swift] lldb: Adjust calls to clang::DiagnosticsEngine ctor (now takes ref vs. ptr)
See llvm#106271 (cherry picked from commit 78fe2cf)
1 parent 7293e44 commit cc52794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,10 +1886,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
18861886

18871887
std::string diags;
18881888
llvm::raw_string_ostream os(diags);
1889-
auto diagOpts = llvm::makeIntrusiveRefCnt<clang::DiagnosticOptions>();
1889+
clang::DiagnosticOptions diagOpts;
18901890
clang::DiagnosticsEngine clangDiags(
18911891
new clang::DiagnosticIDs(), diagOpts,
1892-
new clang::TextDiagnosticPrinter(os, diagOpts.get()));
1892+
new clang::TextDiagnosticPrinter(os, diagOpts));
18931893

18941894
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
18951895
clangDiags)) {

0 commit comments

Comments
 (0)