mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-08 13:51:37 -04:00
chenged append to append_elem for spirv ir
This commit is contained in:
1 parent
98ad032baa
commit
2c0883b4e8
2 files changed
+874
-874
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -430,7 +430,7 @@ gen_one_builder :: proc(sb: ^strings.Builder, opname, verb: string, has_rt, has_
|
||||
|
||||
fmt.sbprintf(sb, "\n%s :: proc(%s)%s {{\n", verb, join(hl[:]), has_r ? " -> Id" : "")
|
||||
if has_r { strings.write_string(sb, "\tr := alloc_id(b)\n") }
|
||||
fmt.sbprintf(sb, "\tappend(&b.ops, inst_%s(%s))\n", opname, join(call[:]))
|
||||
fmt.sbprintf(sb, "\tappend_elem(&b.ops, inst_%s(%s))\n", opname, join(call[:]))
|
||||
if has_r { strings.write_string(sb, "\treturn r\n") }
|
||||
strings.write_string(sb, "}\n")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user