History

tccgen.c: Make sure that gen_op always returns an rvalue.

Either this fix, or an alternative one, is required for arm64.

Edmund Grimley Evans committed 11 years ago

Commit 40f7e111 parent 6d055311 file · +3 −0Browse files

Unified · Split

tccgen.c+3−0
@@ -1832,6 +1832,9 @@ ST_FUNC void gen_op(int op) · 1831 unmodified lines
1832 vtop->type.t = t;1832 vtop->type.t = t;
1833 }1833 }
1834 }1834 }
1835 // Make sure that we have converted to an rvalue:
1836 if (vtop->r & VT_LVAL)
1837 gv(is_float(vtop->type.t & VT_BTYPE) ? RC_FLOAT : RC_INT);
1835}1838}
1836 1839
1837#ifndef TCC_TARGET_ARM1840#ifndef TCC_TARGET_ARM

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t