summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-22 10:20:15 +0200
committerMatthias Braun <matze@braunis.de>2015-07-22 10:20:15 +0200
commitb5bf6388f9eeee9a9b229ea94010c514b4b4d016 (patch)
tree2d0562b715bc1215b2ac2af05b5b9877d878fee7 /ir/be/betranshlp.c
parentf345dbf871a846728994f538f4bbbcfeb9c1b73b (diff)
be_match_immediate: Bring back accidentally removed is_tls_entity() check
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 6220186..cc39303 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -897,6 +897,9 @@ bool be_match_immediate(ir_node const *const node, ir_tarval **const tarval_out,
return false;
}
+ if (entity && is_tls_entity(entity))
+ return false;
+
*tarval_out = cnst ? get_Const_tarval(cnst) : NULL;
*entity_out = entity;
*reloc_kind_out = reloc_kind;