diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-12-01 02:10:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-12-01 02:10:35 +0000 |
commit | c98db7244be45be5aa1a00bd9c070fe43752c0f2 (patch) | |
tree | 74b4784cc165cee445b3c678e94ae5e39f632399 | |
parent | 367e84601aef9f63f7afab663bff3c00bf5a96f3 (diff) | |
download | clang-c98db7244be45be5aa1a00bd9c070fe43752c0f2.tar.gz clang-c98db7244be45be5aa1a00bd9c070fe43752c0f2.tar.bz2 clang-c98db7244be45be5aa1a00bd9c070fe43752c0f2.tar.xz |
Merging r195906:
------------------------------------------------------------------------
r195906 | majnemer | 2013-11-27 17:45:16 -0800 (Wed, 27 Nov 2013) | 5 lines
Sema: Assert that there are no pending local instantiations left
This should have been part of r195887, not sure how it slipped through
the cracks.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_34@195990 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Sema/Sema.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 618e8d0496..769d5cf4a9 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -6414,6 +6414,8 @@ public: } ~SavePendingLocalImplicitInstantiationsRAII() { + assert(S.PendingLocalImplicitInstantiations.empty() && + "there shouldn't be any pending local implicit instantiations"); SavedPendingLocalImplicitInstantiations.swap( S.PendingLocalImplicitInstantiations); } |