You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LDC emits IR where a store with alignment of 8 writes to an alloca with alignment of 4. Overestimating the alignment causes undefined behaviour [0]. I tried with LDC 1.25.1 and LDC 1.24.0 on Ubuntu 20.04.2 LTS / x86-64 (Xubuntu, actually).
[0] https://llvm.org/docs/LangRef.html#id212
For this:
struct Box {
int a;
int b;
int c;
}
void takebox(Box box) { }
void main()
{
Box box;
takebox(box);
}
LDC emits IR where a
store
with alignment of 8 writes to an alloca with alignment of 4. Overestimating the alignment causes undefined behaviour [0]. I tried withLDC 1.25.1
andLDC 1.24.0
onUbuntu 20.04.2 LTS / x86-64
(Xubuntu, actually).[0] https://llvm.org/docs/LangRef.html#id212
For this:
I'm getting this code:
The text was updated successfully, but these errors were encountered: