Skip to content

Commit 0f1bc5d

Browse files
committed
Fix GCC Wimplicit-fallthrough warnings. NFC.
1 parent 97e6f92 commit 0f1bc5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Sema/Sema.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,6 +2865,7 @@ bool FunctionEffectDiff::shouldDiagnoseConversion(
28652865
// matching is better.
28662866
return true;
28672867
}
2868+
llvm_unreachable("Unhandled FunctionEffectDiff::Kind enum");
28682869
case FunctionEffect::Kind::Blocking:
28692870
case FunctionEffect::Kind::Allocating:
28702871
return false;
@@ -2890,6 +2891,7 @@ bool FunctionEffectDiff::shouldDiagnoseRedeclaration(
28902891
// All these forms of mismatches are diagnosed.
28912892
return true;
28922893
}
2894+
llvm_unreachable("Unhandled FunctionEffectDiff::Kind enum");
28932895
case FunctionEffect::Kind::Blocking:
28942896
case FunctionEffect::Kind::Allocating:
28952897
return false;
@@ -2921,6 +2923,7 @@ FunctionEffectDiff::shouldDiagnoseMethodOverride(
29212923
case Kind::ConditionMismatch:
29222924
return OverrideResult::Warn;
29232925
}
2926+
llvm_unreachable("Unhandled FunctionEffectDiff::Kind enum");
29242927

29252928
case FunctionEffect::Kind::Blocking:
29262929
case FunctionEffect::Kind::Allocating:

0 commit comments

Comments
 (0)