diff options
| author | LemonBoy <thatlemon@gmail.com> | 2019-12-15 19:25:41 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-15 16:23:42 -0500 |
| commit | 59de23dfa010c5556f79fbb8b4c637c8d150fd88 (patch) | |
| tree | 0b54e104539ef236d979d26bae14283f49ef44ea /src/ir.cpp | |
| parent | b169f7b0d51fa9e7cf570479079369b9736093ff (diff) | |
| download | zig-59de23dfa010c5556f79fbb8b4c637c8d150fd88.tar.gz zig-59de23dfa010c5556f79fbb8b4c637c8d150fd88.zip | |
Don't assume TLS storage has a fixed address
Fixes #3433
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 8e1cef8e43..52f3126428 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17395,7 +17395,7 @@ static IrInstruction *ir_get_var_ptr(IrAnalyze *ira, IrInstruction *instruction, result->value->type = get_pointer_to_type_extra(ira->codegen, var->var_type, var->src_is_const, is_volatile, PtrLenSingle, var->align_bytes, 0, 0, false); - if (linkage_makes_it_runtime) + if (linkage_makes_it_runtime || var->is_thread_local) goto no_mem_slot; if (value_is_comptime(var->const_value)) { |
