Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LLVM 19.1 #14842

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Jul 30, 2024

Closes #14840. Tested on Debian using 1:19.1.0~++20240730073008+404746b9f21b-1~exp1~20240730073118.4.

The return type of LLVM::DIBuilder#insert_declare_at_end now differs between LibLLVM::ValueRef and LibLLVM::DbgRecordRef depending on whether LLVM is new enough (both are typedefs to Void*), although this return value is never used in the compiler itself.

LibLLVM.di_builder_insert_declare_at_end(self, storage, var_info, expr, dl, block)
{% else %}
LibLLVM.di_builder_insert_declare_record_at_end(self, storage, var_info, expr, dl, block)
{% end %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my, we're returning a raw Void* from LLVM here, which may be a LibLLVM::ValueRef or a LibLLVM::DbgRecordRef now 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LLVM 19 support
3 participants