[llvm] [LLVM-C] Move LLVMDISubrangeTypeMetadataKind to end of LLVMMetadataKind enum (PR #132268)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 20 11:46:43 PDT 2025
nikic wrote:
Uff, this is super broken. It looks like people are not aware of the fact that this enum must list entries in the same order as https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/IR/Metadata.def and that it is an append-only list. It looks like stuff like DIAssignID got inserted into the middle of the list :(
I think we should either have Metadata.def explicitly list the ID (like FixedMetadataKinds.def) or else create an explicit mapping operation between the C API enum and the C++ one.
https://github.com/llvm/llvm-project/pull/132268
More information about the llvm-commits
mailing list