1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-07-05 04:28:57 +00:00

Clarify pointers returning from functions

This commit is contained in:
David Schmenk 2015-01-22 17:44:45 -08:00
parent 06a7f9d0e3
commit ee04be4c5a
2 changed files with 6 additions and 2 deletions

View File

@ -692,7 +692,9 @@ int parse_value(int rvalue)
{
if (type & PTR_TYPE)
{
if (type & LOCAL_TYPE)
if (type & FUNC_TYPE)
emit_call(value, ref_type);
else if (type & LOCAL_TYPE)
(type & BYTE_TYPE) ? emit_llb(value + ref_offset) : emit_llw(value + ref_offset);
else
(type & BYTE_TYPE) ? emit_lab(value, ref_offset, ref_type) : emit_law(value, ref_offset, ref_type);

View File

@ -3406,7 +3406,9 @@ def parse_value(rvalue)
emit_const(value)
elsif type & ADDR_TYPE
if type & PTR_TYPE
if type & LOCAL_TYPE
if type & FUNC_TYPE
emit_call(value)
elsif type & LOCAL_TYPE
if type & BYTE_TYPE
emit_llb(value + ref_offset)
else