1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix the ./v -g -autofree -o v2 cmd/v step

This commit is contained in:
Delyan Angelov 2021-03-17 09:48:56 +02:00
parent fafb035fb5
commit ae401bd930
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -1826,11 +1826,12 @@ fn (mut g Gen) asm_arg(arg ast.AsmArg, stmt ast.AsmStmt) {
ast.AsmAlias {
name := arg.name
if name in stmt.local_labels || name in stmt.global_labels {
g.write(if name in stmt.local_labels {
asm_formatted_name := if name in stmt.local_labels {
name
} else { // val in stmt.global_labels
'%l[$name]'
})
}
g.write(asm_formatted_name)
} else {
g.write('%[$name]')
}