diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-10-15 22:38:23 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-10-15 22:38:23 +0000 |
commit | bb525f7c200aab0ba2ebff88031a636510e89b59 (patch) | |
tree | f1bcd6420ccdfdb5e2c1d19107f2abba1e504512 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 0b15e34bd15e24d6f52bfc259a44e0d149cbf54b (diff) | |
download | bcm5719-llvm-bb525f7c200aab0ba2ebff88031a636510e89b59.tar.gz bcm5719-llvm-bb525f7c200aab0ba2ebff88031a636510e89b59.zip |
CodeGen: Don't drop thread_local when emitting __thread aliases
CodeGen wouldn't mark the aliasee as thread_local if the aliasee was a
tentative definition.
Even if the definition was already emitted, it would never mark the
alias as thread_local.
This fixes PR21288.
llvm-svn: 219859
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index c5c9d6eccc4..a63b799baa7 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -652,9 +652,9 @@ public: /// Set the visibility for the given LLVM GlobalValue. void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; - /// Set the TLS mode for the given LLVM GlobalVariable for the thread-local + /// Set the TLS mode for the given LLVM GlobalValue for the thread-local /// variable declaration D. - void setTLSMode(llvm::GlobalVariable *GV, const VarDecl &D) const; + void setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const; static llvm::GlobalValue::VisibilityTypes GetLLVMVisibility(Visibility V) { switch (V) { |