We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 135aa60 commit 489feeeCopy full SHA for 489feee
lib/ARCMigrate/ARCMT.cpp
@@ -130,7 +130,8 @@ class CaptureDiagnosticConsumer : public DiagnosticConsumer {
130
const Diagnostic &Info) {
131
if (DiagnosticIDs::isARCDiagnostic(Info.getID()) ||
132
level >= DiagnosticsEngine::Error || level == DiagnosticsEngine::Note) {
133
- CapturedDiags.push_back(StoredDiagnostic(level, Info));
+ if (Info.getLocation().isValid())
134
+ CapturedDiags.push_back(StoredDiagnostic(level, Info));
135
return;
136
}
137
0 commit comments