]> granicus.if.org Git - clang/commit
Fix bitcode desynchronization when loading a PCH containing a class template
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 May 2013 01:49:11 +0000 (01:49 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 23 May 2013 01:49:11 +0000 (01:49 +0000)
commite565bfa2d67a3b5e02412b4fde5b28873ff7b8d8
tree6184a95acc7e5db1097514b0fd20387e814f85bd
parent5705f211472f19fc38e58d81365f9261024b3ba3
Fix bitcode desynchronization when loading a PCH containing a class template
specialization with modules enabled. Just don't merge them at all for now;
we'll revisit this when support for template merging is added.

In passing, make Decl::dump() a little safer to use with PCH/modules, by making
it not deserialize any additional declarations. From a debugger you can call
decls_begin() or similar first if you want to dump all child decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTDumper.cpp
lib/Serialization/ASTReaderDecl.cpp
test/PCH/chain-cxx.cpp
test/PCH/chain-friend-instantiation.cpp