Mercurial > hg > index.cgi
comparison lwasm/pass4.c @ 160:02804b7c051c
Don't error out on dlen set and len not for insn length resolution
author | lost@l-w.ca |
---|---|
date | Sun, 28 Aug 2011 14:17:33 -0600 |
parents | 697bc543368c |
children | 348e2816ce32 |
comparison
equal
deleted
inserted
replaced
159:8967eb907324 | 160:02804b7c051c |
---|---|
74 | 74 |
75 | 75 |
76 if (sl -> len == -1 && sl -> insn >= 0 && instab[sl -> insn].resolve) | 76 if (sl -> len == -1 && sl -> insn >= 0 && instab[sl -> insn].resolve) |
77 { | 77 { |
78 (instab[sl -> insn].resolve)(as, sl, 1); | 78 (instab[sl -> insn].resolve)(as, sl, 1); |
79 if (force && sl -> len == -1) | 79 if (force && sl -> len == -1 && sl -> dlen == -1) |
80 { | 80 { |
81 lwasm_register_error(as, sl, "Instruction failed to resolve."); | 81 lwasm_register_error(as, sl, "Instruction failed to resolve."); |
82 return; | 82 return; |
83 } | 83 } |
84 } | 84 } |