summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-15 22:38:23 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-15 22:38:23 +0000
commitbb525f7c200aab0ba2ebff88031a636510e89b59 (patch)
treef1bcd6420ccdfdb5e2c1d19107f2abba1e504512 /clang/lib/CodeGen/CodeGenModule.h
parent0b15e34bd15e24d6f52bfc259a44e0d149cbf54b (diff)
downloadbcm5719-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.h4
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) {
OpenPOWER on IntegriCloud