* don't force the constant of a_cmp_const* to be an integer constant,

it can also be null

git-svn-id: branches/jvmbackend@18358 -
This commit is contained in:
Jonas Maebe 2011-08-20 07:51:24 +00:00
parent ca98c329b3
commit e326f46da5

View File

@ -762,7 +762,7 @@ implementation
if ref.base<>NR_EVAL_STACK_BASE then
a_load_ref_stack(list,size,ref,prepare_stack_for_ref(list,ref,false));
maybe_adjust_cmp_stackval(list,size,cmp_op);
a_load_const_stack(list,size,maybe_adjust_cmp_constval(size,cmp_op,a),R_INTREGISTER);
a_load_const_stack(list,size,maybe_adjust_cmp_constval(size,cmp_op,a),def2regtyp(size));
a_cmp_stack_label(list,size,cmp_op,l);
end;
@ -770,7 +770,7 @@ implementation
begin
a_load_reg_stack(list,size,reg);
maybe_adjust_cmp_stackval(list,size,cmp_op);
a_load_const_stack(list,size,maybe_adjust_cmp_constval(size,cmp_op,a),R_INTREGISTER);
a_load_const_stack(list,size,maybe_adjust_cmp_constval(size,cmp_op,a),def2regtyp(size));
a_cmp_stack_label(list,size,cmp_op,l);
end;