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

Printing union almost works #152

Open
x8-999-github opened this issue Apr 26, 2018 · 0 comments
Open

Printing union almost works #152

x8-999-github opened this issue Apr 26, 2018 · 0 comments

Comments

@x8-999-github
Copy link

Hello,

printing union almost works and it looks like it might work with a small change.
union { uchar16 chr; uint4 ui ;} si;

(oclgrind) p si
si = (raw) 0x09D1E689A2FC3078F03B8B657B669AC4
(oclgrind) p si.chr
si.chr = (9,D1,E6,89,A2,FC,30,78,F0,3B,8B,65,7B,66,9A,C4)
(oclgrind) p si.ui
s17_cl: /usr/lib/llvm-6.0/include/llvm/IR/DerivedTypes.h:315: llvm::Type* llvm::StructType::getElementType(unsigned int) const: Assertion `N < NumContainedTys && "Element number out of range!"' failed.
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant