Skip to content

Conversation

@vmustya
Copy link
Contributor

@vmustya vmustya commented Dec 1, 2025

The bitfield_insert function in the OpenCL C library had an incorrect
__CLC_BODY definition, that included the .inc file for the
__clc_bitfield_insert declaration instead of the correct
implementation. So, the function was not defined at all, leading to
linker errors when trying to use it.

The `bitfield_insert` function in the OpenCL C library had an incorrect
`__CLC_BODY` definition, that included the `.inc` file for the
`__clc_bitfield_insert` declaration instead of the correct
implementation. So, the function was not defined at all, leading to
linker errors when trying to use it.
@llvmbot llvmbot added the libclc libclc OpenCL library label Dec 1, 2025
Copy link
Contributor

@wenju-he wenju-he left a comment

Choose a reason for hiding this comment

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

LGTM

@wenju-he wenju-he merged commit be5db33 into llvm:main Dec 2, 2025
12 checks passed
@vmustya vmustya deleted the clc-bitfield-insert-fix branch December 2, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libclc libclc OpenCL library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants