Copy destination type for CONV from ir->t to op2, too.

This commit is contained in:
Mike Pall
2010-12-31 01:00:54 +01:00
parent dc4b82c33d
commit 65b194a2f8
8 changed files with 49 additions and 29 deletions

View File

@@ -110,6 +110,14 @@ static uint32_t nexttoken(char **pp, int allowlit, int allowany)
for (i = 0; ircall_names[i]; i++)
if (!strcmp(ircall_names[i], p+7))
return i;
} else if (allowlit && !strncmp(p, "IRCONV_", 7)) {
for (i = 0; irt_names[i]; i++)
if (!strncmp(irt_names[i], p+7, 3) && p[10] == '_') {
uint32_t j;
for (j = 0; irt_names[j]; j++)
if (!strncmp(irt_names[j], p+11, 3))
return (i << 5) + j;
}
} else if (allowlit && *p >= '0' && *p <= '9') {
for (i = 0; *p >= '0' && *p <= '9'; p++)
i = i*10 + (*p - '0');