Skip to content

Commit 4f003b4

Browse files
author
David Ungar
committed
Check for null pointer in finishProcessing.
1 parent 02fcbf7 commit 4f003b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/DiagnosticConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool FileSpecificDiagnosticConsumer::finishProcessing() {
197197
// behavior.
198198
bool hadError = false;
199199
for (auto &subConsumer : SubConsumers)
200-
hadError |= subConsumer.second->finishProcessing();
200+
hadError |= subConsumer.second && subConsumer.second->finishProcessing();
201201
return hadError;
202202
}
203203

0 commit comments

Comments
 (0)