__thread: Move constant init check to CheckCompleteVariableDeclaration

We were emitting dynamic initializers for __thread variables if there
was no explicit initializer, as in this test case:

struct S { S(); };
__thread S s;

llvm-svn: 207675
GitOrigin-RevId: 92fc0178c61db0fa9a9f52b4873fa366e47f658c
2 files changed