updated a previously missed assert guard
@@ -215,8 +215,7 @@ local function Cmd(cmd)
elseif tag == "ir.Cmd.CallStatic" then rhs = Call(Fun(cmd.f_id), Vals(cmd.srcs))
elseif tag == "ir.Cmd.CallDyn" then rhs = Call(Val(cmd.src_f), Vals(cmd.srcs))
else
- local tagname = cmd._tag
- assert(typedecl.match_tag(tagname, "ir.Cmd"))
+ local tagname = assert(typedecl.match_tag(cmd._tag, "ir.Cmd"))
rhs = Call(tagname, Vals(ir.get_srcs(cmd)))
end
