summary refs log tree commit diff
path: root/rv64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-08-31 15:14:06 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-09-01 19:09:15 +0200
commit0715a395dfb50d890043df718959cd9229de226f (patch)
tree7d41e580df463c52fbbdf0b37f99062137bb237f /rv64
parentfb76791b97c3ba8878d5db47bb77d440f8a1ef75 (diff)
downloadroux-0715a395dfb50d890043df718959cd9229de226f.tar.gz
capitalize a label
Diffstat (limited to 'rv64')
-rw-r--r--rv64/emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rv64/emit.c b/rv64/emit.c
index f976ade..1fdc4b2 100644
--- a/rv64/emit.c
+++ b/rv64/emit.c
@@ -361,14 +361,14 @@ emitins(Ins *i, Fn *fn, FILE *f)
 		case RCon:
 			con = &fn->con[i->arg[0].val];
 			if (con->type != CAddr || con->bits.i)
-				goto invalid;
+				goto Invalid;
 			fprintf(f, "\tcall %s\n", str(con->label));
 			break;
 		case RTmp:
 			emitf("jalr %0", i, fn, f);
 			break;
 		default:
-		invalid:
+		Invalid:
 			die("invalid call argument");
 		}
 		break;