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 | 76a40219ee5624d78aba167dce02bdbaa930955f (patch) | |
| tree | 3de769c569e320b28ed2b8b89a975c9881d53296 /lib/Serialization/ASTWriterDecl.cpp | |
| parent | 570729e71654f0564bf2ce6504f8629a96850914 (diff) | |
| download | clang-76a40219ee5624d78aba167dce02bdbaa930955f.tar.gz clang-76a40219ee5624d78aba167dce02bdbaa930955f.tar.bz2 clang-76a40219ee5624d78aba167dce02bdbaa930955f.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
| -rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 3e57de11c8..b0ed8bc59f 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/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()); |
