Skip to content

Commit 83714a8

Browse files
committed
Call isARCDiagnostic first
1 parent c74ab1b commit 83714a8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/Basic/DiagnosticIDs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,7 @@ bool DiagnosticIDs::isUnrecoverable(unsigned DiagID) const {
834834

835835
// Currently we consider all ARC errors except err_arc_may_not_respond as
836836
// recoverable.
837-
if (DiagID == diag::err_arc_may_not_respond)
838-
return true;
839-
840-
if (isARCDiagnostic(DiagID))
837+
if (isARCDiagnostic(DiagID) && DiagID != diag::err_arc_may_not_respond)
841838
return false;
842839

843840
if (isCodegenABICheckDiagnostic(DiagID))

0 commit comments

Comments
 (0)