[Sema] ICK_Function_Conversion is a third kind conversion

Not sure if this has any effect, but it was inconsistent before.

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D67113
This commit is contained in:
Aaron Puchert 2020-08-29 18:13:56 +02:00 committed by Aaron Puchert
parent 5ec2b757cc
commit b4a2d36c3f
1 changed files with 1 additions and 1 deletions

View File

@ -5515,7 +5515,6 @@ static bool CheckConvertedConstantConversions(Sema &S,
// conversions are fine.
switch (SCS.Second) {
case ICK_Identity:
case ICK_Function_Conversion:
case ICK_Integral_Promotion:
case ICK_Integral_Conversion: // Narrowing conversions are checked elsewhere.
case ICK_Zero_Queue_Conversion:
@ -5562,6 +5561,7 @@ static bool CheckConvertedConstantConversions(Sema &S,
case ICK_Function_To_Pointer:
llvm_unreachable("found a first conversion kind in Second");
case ICK_Function_Conversion:
case ICK_Qualification:
llvm_unreachable("found a third conversion kind in Second");