]> granicus.if.org Git - clang/commit
When serializing a DeclRefExpr, always store the number of explicit template
authorAnders Carlsson <andersca@mac.com>
Sun, 6 Mar 2011 18:19:42 +0000 (18:19 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 6 Mar 2011 18:19:42 +0000 (18:19 +0000)
commitb0ca137bf399d956a3424816c238bc2532250d17
tree28bf461120db92f401aad0ff4199521341d4e3a6
parentab0d8bde2d8ab54aae3a0d9fce11f29b3d1d0bb4
When serializing a DeclRefExpr, always store the number of explicit template
arguments at the same offset, since it's needed when creating the empty
DeclRefExpr when deserializing. Fixes a memory corruption issue that would lead
to random bugs and crashes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/PCH/cxx-templates.cpp