compiler/ir: replace quantities with their integer value

This commit is contained in:
Sebastien Bourdeauducq 2014-07-23 11:48:43 -06:00
parent 1b52941381
commit d922c3db7e
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ def _emit_expr(env, builder, ns, node):
if node.func.id == "syscall":
return env.emit_syscall(builder, node.args[0].s,
[_emit_expr(env, builder, ns, expr) for expr in node.args[1:]])
elif node.func.id == "Quantity":
return _emit_expr(env, builder, ns, node.args[0])
else:
raise NotImplementedError
else: