Sema: AIR memory layout reworking for noreturn instructions

This commit is contained in:
Andrew Kelley
2021-07-14 22:44:57 -07:00
parent c020a30296
commit 1294ebe1f5
2 changed files with 41 additions and 49 deletions

View File

@@ -1255,7 +1255,7 @@ pub const Scope = struct {
pub fn addNoOp(block: *Block, tag: Air.Inst.Tag) error{OutOfMemory}!Air.Inst.Ref {
return block.addInst(.{
.tag = tag,
.data = .no_op,
.data = .{ .no_op = {} },
});
}