[fixcode] Accept the fixit for adding bang to unwrap optional.

This is useful for getting fixits for the IOU handling changes.
This commit is contained in:
Argyrios Kyrtzidis
2016-05-11 13:56:48 -07:00
parent 273ad53dce
commit 6b8ee42248
3 changed files with 3 additions and 8 deletions

View File

@@ -554,11 +554,6 @@ private:
if (FixitAll)
return true;
// Err on the side of caution and don't automatically add bang, which may
// lead to crashes.
if (Info.ID == diag::missing_unwrap_optional.ID)
return false;
// Do not add a semi as it is wrong in most cases during migration
if (Info.ID == diag::statement_same_line_without_semi.ID)
return false;