m2c icon indicating copy to clipboard operation
m2c copied to clipboard

Improve pointer type annotations for loads/stores

Open simonlindholm opened this issue 4 years ago • 0 comments

We currently emit e.g. *(void*)0x1234 = 12.34f;. Naively this is not too hard to fix by changing Type.ptr() to Type.ptr(Type.f32()), but #79 may cause problems, and the pointer may point to a struct, making f32* incorrect.

Perhaps we should focus on just the silly-looking cases like this and not propagate type information further.

simonlindholm avatar Apr 28 '20 07:04 simonlindholm