Code cleaning: utilize vpushll().

This commit is contained in:
Shinichiro Hamaji 2009-03-16 02:27:23 +09:00 committed by grischka
parent 4f056031f4
commit 006c907da7

8
tcc.c
View File

@ -5890,13 +5890,7 @@ void gen_op(int op)
}
type1 = vtop[-1].type;
#ifdef TCC_TARGET_X86_64
{
CValue cval;
CType ctype;
ctype.t = VT_LLONG;
cval.ull = pointed_size(&vtop[-1].type);
vsetc(&ctype, VT_CONST, &cval);
}
vpushll(pointed_size(&vtop[-1].type));
#else
/* XXX: cast to int ? (long long case) */
vpushi(pointed_size(&vtop[-1].type));