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 632b65d commit 78fe2cfCopy full SHA for 78fe2cf
lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp
@@ -1881,10 +1881,10 @@ void SwiftASTContext::AddExtraClangCC1Args(
1881
1882
std::string diags;
1883
llvm::raw_string_ostream os(diags);
1884
- auto diagOpts = llvm::makeIntrusiveRefCnt<clang::DiagnosticOptions>();
+ clang::DiagnosticOptions diagOpts;
1885
clang::DiagnosticsEngine clangDiags(
1886
new clang::DiagnosticIDs(), diagOpts,
1887
- new clang::TextDiagnosticPrinter(os, diagOpts.get()));
+ new clang::TextDiagnosticPrinter(os, diagOpts));
1888
1889
if (!clang::CompilerInvocation::CreateFromArgs(invocation, clangArgs,
1890
clangDiags)) {
0 commit comments