Skip to content

Commit 5bf567f

Browse files
remove DiagPrinter directly from the CompilerInvocation
1 parent 85ad816 commit 5bf567f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/driver/swift_symbolgraph_extract_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args, const char *Argv
250250
// since some SDK modules can cause errors in the getModuleByName() call. The call
251251
// itself will properly return nullptr after this failure, so for our purposes we
252252
// don't need to print these errors.
253-
CI.getDiags().removeConsumer(DiagPrinter);
253+
CI.removeDiagnosticConsumer(&DiagPrinter);
254254

255255
for (const auto &ModuleName : VisibleModuleNames) {
256256
if (ModuleName.str().startswith("_")) {

0 commit comments

Comments
 (0)