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

LLVMGetBufferStart returns String instead of long because of const char* return type #934

Closed
KitsuneAlex opened this issue Oct 18, 2023 · 1 comment

Comments

@KitsuneAlex
Copy link
Contributor

Version

3.3.3

Platform

Linux x64, Linux arm64, Linux arm32, macOS x64, macOS arm64, Windows x64, Windows x86, Windows arm64

JDK

Zulu OpenJDK 21

Module

LLVM

Bug description

There is a code generation bug involving the LLVMGetBufferStart function, as it falsely returns a String instead of a long, because the code generator seems to assume String based on the native function's const char* return type. Imo LLVM itself should just return a (const) void* there.. But that's not to question for me xD

This small issue has been bugging me for a while as i have to use the nGetBufferStart function instead as a workaround.

Thanks for the great work on the LLVM bindings otherwise, really nice to quickly build a compiler in Java :)

Stacktrace or crash log output

No response

@Spasi Spasi added the Type: Bug label Nov 6, 2023
@Spasi Spasi closed this as completed in c0cd5b2 Nov 8, 2023
@Spasi
Copy link
Member

Spasi commented Nov 8, 2023

@KitsuneAlex This will be fixed in the first 3.3.4 snapshot, thanks!

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

No branches or pull requests

2 participants