mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +00:00
Sema: no explicit coercion needed for inline asm args
These are now done with result locations.
This commit is contained in:
parent
72bcdb639f
commit
07c204393f
@ -2577,9 +2577,8 @@ fn zirAsm(
|
||||
const clobbers = try sema.arena.alloc([]const u8, extra.data.clobbers_len);
|
||||
|
||||
for (args) |*arg| {
|
||||
const uncasted = try sema.resolveInst(sema.code.extra[extra_i]);
|
||||
arg.* = try sema.resolveInst(sema.code.extra[extra_i]);
|
||||
extra_i += 1;
|
||||
arg.* = try sema.coerce(block, Type.initTag(.usize), uncasted, uncasted.src);
|
||||
}
|
||||
for (inputs) |*name| {
|
||||
name.* = sema.code.nullTerminatedString(sema.code.extra[extra_i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user