Skip to content

Commit 78fe2cf

Browse files
committed
[Swift] lldb: Adjust calls to clang::DiagnosticsEngine ctor (now takes ref vs. ptr)
See llvm#106271
1 parent 632b65d commit 78fe2cf

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
@@ -1881,10 +1881,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
18811881

18821882
std::string diags;
18831883
llvm::raw_string_ostream os(diags);
1884-
auto diagOpts = llvm::makeIntrusiveRefCnt<clang::DiagnosticOptions>();
1884+
clang::DiagnosticOptions diagOpts;
18851885
clang::DiagnosticsEngine clangDiags(
18861886
new clang::DiagnosticIDs(), diagOpts,
1887-
new clang::TextDiagnosticPrinter(os, diagOpts.get()));
1887+
new clang::TextDiagnosticPrinter(os, diagOpts));
18881888

18891889
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
18901890
clangDiags)) {

0 commit comments

Comments
 (0)