Code cleaning: utilize vpushll().
This commit is contained in:
committed by
grischka
parent
4f056031f4
commit
006c907da7
8
tcc.c
8
tcc.c
@ -5890,13 +5890,7 @@ void gen_op(int op)
|
|||||||
}
|
}
|
||||||
type1 = vtop[-1].type;
|
type1 = vtop[-1].type;
|
||||||
#ifdef TCC_TARGET_X86_64
|
#ifdef TCC_TARGET_X86_64
|
||||||
{
|
vpushll(pointed_size(&vtop[-1].type));
|
||||||
CValue cval;
|
|
||||||
CType ctype;
|
|
||||||
ctype.t = VT_LLONG;
|
|
||||||
cval.ull = pointed_size(&vtop[-1].type);
|
|
||||||
vsetc(&ctype, VT_CONST, &cval);
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
/* XXX: cast to int ? (long long case) */
|
/* XXX: cast to int ? (long long case) */
|
||||||
vpushi(pointed_size(&vtop[-1].type));
|
vpushi(pointed_size(&vtop[-1].type));
|
||||||
|
|||||||
Reference in New Issue
Block a user