Skip to content

Commit 0f38e95

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 2f9f31f commit 0f38e95

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

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

18911891
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
18921892
clangDiags)) {

0 commit comments

Comments
 (0)