In VarDecl nodes, store the thread storage class specifier as written.

llvm-svn: 181113
This commit is contained in:
Enea Zaffanella
2013-05-04 08:27:07 +00:00
parent fee13d1e11
commit acb8ecd664
10 changed files with 62 additions and 30 deletions

View File

@@ -1623,7 +1623,7 @@ CodeGenModule::MaybeEmitGlobalStdInitializerListInitializer(const VarDecl *D,
D->getLocStart(), D->getLocation(),
name, arrayType, sourceInfo,
SC_Static);
backingArray->setTLSKind(D->getTLSKind());
backingArray->setTSCSpec(D->getTSCSpec());
// Now clone the InitListExpr to initialize the array instead.
// Incredible hack: we want to use the existing InitListExpr here, so we need