In Sema::InstantiateStaticDataMemberDefinition, pass the var decl to the consumer
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 24 Feb 2013 00:05:01 +0000 (00:05 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 24 Feb 2013 00:05:01 +0000 (00:05 +0000)
commit8a27b2b35065faf3171ac82f7e1862157d70d7b0
tree868a6ed7958242da4d631bbf271b714117b781ed
parent80070bd439585ee8d267d2e1c61e4af4ada0be7f
In Sema::InstantiateStaticDataMemberDefinition, pass the var decl to the consumer
just using ASTConsumer::HandleCXXStaticMemberVarInstantiation(), don't pass it with
ASTConsumer::HandleTopLevelDecl.

ASTConsumer::HandleTopLevelDecl is intended for user-written top-level decls;
a consumer can treat an instantiated static data member however it wants of course.

llvm-svn: 175976
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp