Skip to content
New issue

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

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

Already on GitHub? # to your account

[missing feature/bug] thread local storage array results into LLVM error #49

Open
lilith218 opened this issue Nov 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@lilith218
Copy link

Code Sample:

__thread int vals[3]; /* causes a crash */
__thread int val; /* no problem */
int main(void) { return 0; }

Resulting Error:
LLVM ERROR: ERROR: Constant unimplemented for type: [3 x i32]

@michaliskok
Copy link
Collaborator

TLS is currently only supported for global integers. I'll leave this open until the feature is implemented.

@michaliskok michaliskok added the enhancement New feature or request label Dec 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants