diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-07-16 23:06:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-20 12:19:16 -0700 |
| commit | d17f492017c77d5d52d2fbd65eaa5c1e08b24161 (patch) | |
| tree | 4b5f2ecc801b19f546982a0bc159e2db979f90b2 /src/AstGen.zig | |
| parent | 2438f61f1c37aefa16852130370df44b3fabf785 (diff) | |
| download | zig-d17f492017c77d5d52d2fbd65eaa5c1e08b24161.tar.gz zig-d17f492017c77d5d52d2fbd65eaa5c1e08b24161.zip | |
stage2: miscellaneous fixes for the branch
* Breaking language change: inline assembly must use string literal
syntax. This is in preparation for inline assembly improvements that
involve more integration with the Zig language. This means we cannot
rely on text substitution.
* Liveness: properly handle inline assembly and function calls with
more than 3 operands.
- More than 35 operands is not yet supported. This is a low priority
to implement.
- This required implementation in codegen.zig as well.
* Liveness: fix bug causing incorrect tomb bits.
* Sema: enable switch expressions that are evaluated at compile-time.
- Runtime switch instructions still need to be reworked in this
branch. There was a TODO left here (by me) with a suggestion to do
some bigger changes as part of the AIR memory reworking. Now that
time has come and I plan to honor the suggestion in a future commit
before merging this branch.
* AIR printing: fix missing ')' on alive instructions.
We're back to "hello world" working for the x86_64 backend.
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index cbd918ecc7..31e7f040a2 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -6601,7 +6601,7 @@ fn asmExpr( const asm_source = switch (node_tags[full.ast.template]) { .string_literal => try astgen.strLitAsString(main_tokens[full.ast.template]), .multiline_string_literal => try astgen.strLitNodeAsString(full.ast.template), - else => return astgen.failNode(node, "assembly code must use string literal syntax", .{}), + else => return astgen.failNode(full.ast.template, "assembly code must use string literal syntax", .{}), }; // See https://github.com/ziglang/zig/issues/215 and related issues discussing |
