LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Family of `LLVMLookupIntrinsicID` functions returns `void` instead of an `int` #949

Closed KitsuneAlex closed 7 months ago

KitsuneAlex commented 7 months ago

Version

3.3.4 (snapshot)

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

As described in the title, the given functions discard their result instead of returning it. The functions shown below should all return int, not void. Worked around by invoking the raw function pointer in my own codebase. image

Stacktrace or crash log output

No response

KitsuneAlex commented 7 months ago

Actually, don't mind this issue report, i have another small issue, i'm just gonna condense all my suggested changes into a single PR and open that instead. Cheers and sorry for the extra notification.