We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f9f31f commit 0f38e95Copy full SHA for 0f38e95
lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
@@ -1883,10 +1883,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
1883
1884
std::string diags;
1885
llvm::raw_string_ostream os(diags);
1886
- auto diagOpts = llvm::makeIntrusiveRefCnt<clang::DiagnosticOptions>();
+ clang::DiagnosticOptions diagOpts;
1887
clang::DiagnosticsEngine clangDiags(
1888
new clang::DiagnosticIDs(), diagOpts,
1889
- new clang::TextDiagnosticPrinter(os, diagOpts.get()));
+ new clang::TextDiagnosticPrinter(os, diagOpts));
1890
1891
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
1892
clangDiags)) {
0 commit comments