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 7293e44 commit cc52794Copy full SHA for cc52794
lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
@@ -1886,10 +1886,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
1886
1887
std::string diags;
1888
llvm::raw_string_ostream os(diags);
1889
- auto diagOpts = llvm::makeIntrusiveRefCnt<clang::DiagnosticOptions>();
+ clang::DiagnosticOptions diagOpts;
1890
clang::DiagnosticsEngine clangDiags(
1891
new clang::DiagnosticIDs(), diagOpts,
1892
- new clang::TextDiagnosticPrinter(os, diagOpts.get()));
+ new clang::TextDiagnosticPrinter(os, diagOpts));
1893
1894
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
1895
clangDiags)) {
0 commit comments