[fixit] Apply the 'forced_downcast_coercion' warning automatically.

This can show up when upgrading due to ObjC generics changes.

Swift SVN r28454
This commit is contained in:
Argyrios Kyrtzidis
2015-05-12 05:14:38 +00:00
parent 4925bda845
commit a01e7c27cf
3 changed files with 6 additions and 7 deletions

View File

@@ -410,7 +410,8 @@ private:
bool shouldFix(DiagnosticKind Kind, const DiagnosticInfo &Info) {
if (Kind == DiagnosticKind::Error)
return true;
if (Info.ID == diag::parameter_pound_double_up.ID)
if (Info.ID == diag::parameter_pound_double_up.ID ||
Info.ID == diag::forced_downcast_coercion.ID)
return true;
return false;
}