aboutsummaryrefslogtreecommitdiff
path: root/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'amd64')
-rw-r--r--amd64/emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index cf36ebe..064ee60 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -167,7 +167,7 @@ emitcon(Con *con, FILE *f)
case CAddr:
l = str(con->label);
p = l[0] == '"' ? "" : T.assym;
- if (con->rel == RelThr)
+ if (con->reloc == RelThr)
fprintf(f, "%%fs:%s%s@tpoff", p, l);
else
fprintf(f, "%s%s", p, l);
@@ -340,7 +340,7 @@ Next:
case RCon:
off = fn->con[ref.val];
emitcon(&off, f);
- if (off.type == CAddr && off.rel != RelThr)
+ if (off.type == CAddr && off.reloc != RelThr)
fprintf(f, "(%%rip)");
break;
case RTmp: