From ae401bd930bc4590f415f567ec3bf93ec6441181 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 17 Mar 2021 09:48:56 +0200 Subject: [PATCH] ci: fix the `./v -g -autofree -o v2 cmd/v` step --- vlib/v/gen/c/cgen.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 8a3bdede9e..1801883acf 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -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]') }