File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2865,6 +2865,7 @@ bool FunctionEffectDiff::shouldDiagnoseConversion(
2865
2865
// matching is better.
2866
2866
return true ;
2867
2867
}
2868
+ llvm_unreachable (" Unhandled FunctionEffectDiff::Kind enum" );
2868
2869
case FunctionEffect::Kind::Blocking:
2869
2870
case FunctionEffect::Kind::Allocating:
2870
2871
return false ;
@@ -2890,6 +2891,7 @@ bool FunctionEffectDiff::shouldDiagnoseRedeclaration(
2890
2891
// All these forms of mismatches are diagnosed.
2891
2892
return true ;
2892
2893
}
2894
+ llvm_unreachable (" Unhandled FunctionEffectDiff::Kind enum" );
2893
2895
case FunctionEffect::Kind::Blocking:
2894
2896
case FunctionEffect::Kind::Allocating:
2895
2897
return false ;
@@ -2921,6 +2923,7 @@ FunctionEffectDiff::shouldDiagnoseMethodOverride(
2921
2923
case Kind::ConditionMismatch:
2922
2924
return OverrideResult::Warn;
2923
2925
}
2926
+ llvm_unreachable (" Unhandled FunctionEffectDiff::Kind enum" );
2924
2927
2925
2928
case FunctionEffect::Kind::Blocking:
2926
2929
case FunctionEffect::Kind::Allocating:
You can’t perform that action at this time.
0 commit comments