summaryrefslogtreecommitdiff
path: root/src/buildvm_asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm_asm.c')
-rw-r--r--src/buildvm_asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildvm_asm.c b/src/buildvm_asm.c
index 31b6f61e..295b07ef 100644
--- a/src/buildvm_asm.c
+++ b/src/buildvm_asm.c
@@ -156,7 +156,11 @@ void emit_asm(BuildCtx *ctx)
156 int size = (int)(next - prev); 156 int size = (int)(next - prev);
157 int32_t stop = next; 157 int32_t stop = next;
158 if (pi >= ctx->npc) { 158 if (pi >= ctx->npc) {
159 char *p;
159 sprintf(name, LABEL_PREFIX "%s", ctx->globnames[pi-ctx->npc]); 160 sprintf(name, LABEL_PREFIX "%s", ctx->globnames[pi-ctx->npc]);
161 /* Always strip fastcall suffix. Wrong for (unused) COFF on Win32. */
162 p = strchr(name, '@');
163 if (p) *p = '\0';
160 emit_asm_label(ctx, name, size, 1); 164 emit_asm_label(ctx, name, size, 1);
161#if LJ_HASJIT 165#if LJ_HASJIT
162 } else { 166 } else {