diff options
| author | Daniele Cocca <daniele.cocca@gmail.com> | 2022-03-20 20:57:56 +0000 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-03-30 11:57:16 +0300 |
| commit | ebafdb958c1aa6b41c28fc7d45f44e38a69a3bd5 (patch) | |
| tree | f61152ba5bbd2fe77fbfcdedc9e876a5d982550b /src/codegen | |
| parent | 633fe41a2c2310d8cfab53ee9d87bb50ac4efc41 (diff) | |
| download | zig-ebafdb958c1aa6b41c28fc7d45f44e38a69a3bd5.tar.gz zig-ebafdb958c1aa6b41c28fc7d45f44e38a69a3bd5.zip | |
AstGen: don't coerce inputs to usize in asmExpr
Instead, use ResultLoc.none to allow for the expression type to be
inferred [^1]. This effectively moves the type coercion to Sema, in
order to turn comptime values into usable values for the backends to
consume. Right now the coercion is applies as comptime_int -> usize and
comptime_float -> f64, as an arbitrary choice.
[^1]: https://github.com/ziglang/zig/blob/9f25c8140cb859fcea7023362afcb29b1e4df41f/src/AstGen.zig#L207-L208
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
