<div>Hi guys, I'm new to LLVM and trying demo with the following C code:</div><div><br></div><div>int main()</div><div>{</div><div> int a = 65535;</div><div> *(1+(char *)a) = 0;</div><div> return a;</div><div>}</div>
<div><br></div><div>unfortunately it generates the wrong IR:</div><div><br></div><div>define i32 @main() nounwind {</div><div>entry:</div><div> store i8 0, i8* inttoptr (i64 65536 to i8*), align 65536</div><div> ret i32 65535</div>
<div>}</div><div><br></div><div>seems SSA not applied on memory but incorrectly 'acrossed' by scalar values.</div><div><br></div><div>Is it a bug?</div>