Skip to content

llvm-c breaking changes to LLVMTypeKind and LLVMValueKind #48249

@cuviper

Description

@cuviper
Bugzilla Link 48905
Resolution FIXED
Resolved on Jan 29, 2021 22:19
Version trunk
OS All
Blocks #48246
CC @dwblaikie,@MaskRay,@tstellar
Fixed by commit(s) 6612c2b 8d22f25

Extended Description

Compared to LLVM 11, both of these enums have broken the C ABI by adding variants in the middle, rather than extending the end. This changes the raw value of all variants that follow the new additions.

  • LLVMTypeKind added LLVMX86_AMXTypeKind
  • LLVMValueKind added LLVMPoisonValueValueKind

I know that the ABI stability of llvm-c is only best-effort, but Core.h is usually steady, and it's a simple fix to move these additions to the end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions