https://bugs.llvm.org/show_bug.cgi?id=40531
Joachim Protze <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #7 from Joachim Protze <[email protected]> ---
gcc and clang seem to have a different idea of what should be the result on 32
bit arch for:
`int a;
(uint64_t)&a;`
I still can reproduce the issue when using gcc as test compiler after compiling
the runtime with clang or vice versa.
I must admit, that I do not fully understand the type conversion rule applied
here, but from my understanding gcc and clang disagree in the signedness of
void*?
For a compatible result the following cast should help:
(ompt_wait_id_t)(uintptr_t)&a;
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs