forked from OSchip/llvm-project
[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:
parent
5ec2b757cc
commit
b4a2d36c3f
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue