about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-05-02 21:44:25 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-05-30 12:59:05 +0200
commit0aa7f4d2f2ff55b8cfe5de5e4e7665a8fdeaf050 (patch)
tree1aa0aed21020a916efac714459a6ba07c6f82f06 /src/librustc_codegen_llvm
parent0e9e4083100aa3ebf09b8f1ace0348cb37475eb9 (diff)
downloadrust-0aa7f4d2f2ff55b8cfe5de5e4e7665a8fdeaf050.tar.gz
rust-0aa7f4d2f2ff55b8cfe5de5e4e7665a8fdeaf050.zip
Make TLS accesses explicit in MIR
Diffstat (limited to 'src/librustc_codegen_llvm')
-rw-r--r--src/librustc_codegen_llvm/common.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/common.rs b/src/librustc_codegen_llvm/common.rs
index 856f989bc10..a5cda5949ee 100644
--- a/src/librustc_codegen_llvm/common.rs
+++ b/src/librustc_codegen_llvm/common.rs
@@ -259,6 +259,7 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
                     GlobalAlloc::Function(fn_instance) => self.get_fn_addr(fn_instance),
                     GlobalAlloc::Static(def_id) => {
                         assert!(self.tcx.is_static(def_id));
+                        assert!(!self.tcx.is_thread_local_static(def_id));
                         self.get_static(def_id)
                     }
                 };