https://bugs.llvm.org/show_bug.cgi?id=49708
Gonzalo BG <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #2 from Gonzalo BG <[email protected]> ---
I hope this makes it clearer. The above example is equivalent to:
char h(char* ptr) {
ptr = (char*)(int*)ptr;
return *ptr;
}
> A pointer to an integer is 4-byte aligned:
A load through a pointer to an integer can assume 4-byte alignment.
In the functions f, g, and h that I've shown, there are no such loads anywhere.
h loads through a char*, and f loads through an unsigned char* inside
std::memcpy according to the memcpy spec.
--
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