Mercurial > projects > ldc
view lphobos/typeinfos2.d @ 1053:11e28922ac76
Always pass an address expression (not a var expression) to asm operands of
type Arg_Memory.
This fixes the following code:
{{{
void f(real x) { asm { fld x[RBP]; } }
void g(int x) { asm { mov EAX, x[RBP]; } }
}}}
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 08 Mar 2009 00:57:58 +0100 |
parents | 288fe1029e1f |
children |
line wrap: on
line source
module typeinfos2; import typeinfo2.ti_AC, typeinfo2.ti_Adouble, typeinfo2.ti_Afloat, typeinfo2.ti_Ag, typeinfo2.ti_Aint, typeinfo2.ti_Along, typeinfo2.ti_Areal, typeinfo2.ti_Ashort, typeinfo2.ti_C;