diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-23 01:49:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-05-23 01:49:11 +0000 |
commit | e565bfa2d67a3b5e02412b4fde5b28873ff7b8d8 (patch) | |
tree | 6184a95acc7e5db1097514b0fd20387e814f85bd /test/PCH | |
parent | 5705f211472f19fc38e58d81365f9261024b3ba3 (diff) | |
download | clang-e565bfa2d67a3b5e02412b4fde5b28873ff7b8d8.tar.gz clang-e565bfa2d67a3b5e02412b4fde5b28873ff7b8d8.tar.bz2 clang-e565bfa2d67a3b5e02412b4fde5b28873ff7b8d8.tar.xz |
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
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/chain-cxx.cpp | 3 | ||||
-rw-r--r-- | test/PCH/chain-friend-instantiation.cpp | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/PCH/chain-cxx.cpp b/test/PCH/chain-cxx.cpp index 4b64f51143..6e9c1743fb 100644 --- a/test/PCH/chain-cxx.cpp +++ b/test/PCH/chain-cxx.cpp @@ -6,6 +6,9 @@ // With PCH // RUN: %clang_cc1 -fsyntax-only -verify %s -chain-include %s -chain-include %s +// With modules +// RUN: %clang_cc1 -fsyntax-only -verify -fmodules %s -chain-include %s -chain-include %s + // expected-no-diagnostics #ifndef HEADER1 diff --git a/test/PCH/chain-friend-instantiation.cpp b/test/PCH/chain-friend-instantiation.cpp index 294d979112..2f042a8341 100644 --- a/test/PCH/chain-friend-instantiation.cpp +++ b/test/PCH/chain-friend-instantiation.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -ast-print -o - -chain-include %s -chain-include %s +// RUN: %clang_cc1 %s -ast-print -o - -fmodules -chain-include %s -chain-include %s #if !defined(PASS1) #define PASS1 |