summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-04-13 02:43:54 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-04-13 02:43:54 +0000
commitfd3834f7a1cc06f3843a83080c65eadb613927f4 (patch)
tree8b34c1ec3249c0d7d89aad10e848997a321e94c3 /clang/lib/CodeGen/CGExpr.cpp
parent98c0eaecf51606fb1b83cdec6e6ddeaf091a61cc (diff)
downloadbcm5719-llvm-fd3834f7a1cc06f3843a83080c65eadb613927f4.tar.gz
bcm5719-llvm-fd3834f7a1cc06f3843a83080c65eadb613927f4.zip
Annotate flavor of TLS variable (statically or dynamically initialized) onto the AST.
llvm-svn: 179447
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 4d72dc1c884..c5155088758 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1667,7 +1667,7 @@ static void setObjCGCLValueClass(const ASTContext &Ctx, const Expr *E,
if (const VarDecl *VD = dyn_cast<VarDecl>(Exp->getDecl())) {
if (VD->hasGlobalStorage()) {
LV.setGlobalObjCRef(true);
- LV.setThreadLocalRef(VD->isThreadSpecified());
+ LV.setThreadLocalRef(VD->getTLSKind() != VarDecl::TLS_None);
}
}
LV.setObjCArray(E->getType()->isArrayType());
OpenPOWER on IntegriCloud