* make sure that integers converted to widechar are always processed by an

i2c instruction for Dalvik verification purposes

git-svn-id: branches/jvmbackend@19826 -
This commit is contained in:
Jonas Maebe 2011-12-11 17:26:14 +00:00
parent 764502fbe4
commit af9934cb6c

View File

@ -550,8 +550,9 @@ implementation
end
else
begin
if (ressize < sizeof(aint)) and
(def_cgsize(left.resultdef)<>def_cgsize(resultdef)) then
if ((ressize < sizeof(aint)) and
(def_cgsize(left.resultdef)<>def_cgsize(resultdef))) or
(is_widechar(left.resultdef)<>is_widechar(resultdef)) then
begin
location_reset(location,LOC_REGISTER,def_cgsize(resultdef));
location.register:=hlcg.getintregister(current_asmdata.CurrAsmList,resultdef);