[clang][ASTImporter] Fix import of VarDecl regarding thread local storage spec
authorBalazs Benics <balazsbenics@sigmatechnology.se>
Thu, 18 Mar 2021 12:06:38 +0000 (13:06 +0100)
committerBalazs Benics <balazsbenics@sigmatechnology.se>
Thu, 18 Mar 2021 12:06:38 +0000 (13:06 +0100)
commitc1fb23c1aadd22e736c4a1c36c146bbfbc48f959
treefd344b9e4d2d0510da07b0bc19cad75aba9e52f1
parent8b8b9af8c9132acb446fc42569de8a0f57c6b556
[clang][ASTImporter] Fix import of VarDecl regarding thread local storage spec

After the import, we did not copy the `TSCSpec`.
This commit resolves that.

Reviewed By: balazske

Differential Revision: https://reviews.llvm.org/D98707
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp