[all-commits] [llvm/llvm-project] 8ce689: [Sema] Add missing entries to the arrays in GetImp...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Feb 28 11:17:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8ce68969b90288a3dc75c5c15283fc11f97b278a
https://github.com/llvm/llvm-project/commit/8ce68969b90288a3dc75c5c15283fc11f97b278a
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-02-28 (Tue, 28 Feb 2023)
Changed paths:
M clang/lib/Sema/SemaOverload.cpp
Log Message:
-----------
[Sema] Add missing entries to the arrays in GetImplicitConversionName and GetConversionRank.
It appears that ICK_Zero_Queue_Conversion was inserted into the ICK
enum without updating this table. Easy to do since the table size
was set to ICK_Num_Conversion_Kinds.
I've used ICR_Exact_Match to match what was previously done for
ICK_Zero_Event_Conversion that last time someone noticed this had happened.
To prevent this from happening again, I've removed the explicit size
and used a static_assert to check the size against ICK_Num_Conversion_Kinds.
Differential Revision: https://reviews.llvm.org/D144990
More information about the All-commits
mailing list