diff options
author | John McCall <rjmccall@apple.com> | 2011-02-09 01:13:10 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-02-09 01:13:10 +0000 |
commit | f4cd4f94d9300efbbc3b25832ac433d0bc609f23 (patch) | |
tree | 591902cbdfed3466d0038347d5116e2919675967 /clang/lib/Serialization/ASTWriterDecl.cpp | |
parent | 51b1e2d271a4749654c2168aad7b24321bbb2897 (diff) | |
download | bcm5719-llvm-f4cd4f94d9300efbbc3b25832ac433d0bc609f23.tar.gz bcm5719-llvm-f4cd4f94d9300efbbc3b25832ac433d0bc609f23.zip |
NonTypeTemplateParmDecl is just a DeclaratorDecl, not a VarDecl.
Also, reorganize and make very explicit the logic for determining
the value kind and type of a referenced declaration.
llvm-svn: 125150
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTWriterDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp index 3e57de11c83..b0ed8bc59f8 100644 --- a/clang/lib/Serialization/ASTWriterDecl.cpp +++ b/clang/lib/Serialization/ASTWriterDecl.cpp @@ -1009,7 +1009,7 @@ void ASTDeclWriter::VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D) { if (D->isExpandedParameterPack()) Record.push_back(D->getNumExpansionTypes()); - VisitVarDecl(D); + VisitDeclaratorDecl(D); // TemplateParmPosition. Record.push_back(D->getDepth()); Record.push_back(D->getPosition()); |