]> granicus.if.org Git - clang/commitdiff
Merging r195906:
authorBill Wendling <isanbard@gmail.com>
Sun, 1 Dec 2013 02:10:35 +0000 (02:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 1 Dec 2013 02:10:35 +0000 (02:10 +0000)
------------------------------------------------------------------------
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

include/clang/Sema/Sema.h

index 618e8d0496d1a9c07f5902a3f45e7eb67c70b1fc..769d5cf4a9647237298d6c9e31f141196f4f9460 100644 (file)
@@ -6414,6 +6414,8 @@ public:
     }
 
     ~SavePendingLocalImplicitInstantiationsRAII() {
+      assert(S.PendingLocalImplicitInstantiations.empty() &&
+             "there shouldn't be any pending local implicit instantiations");
       SavedPendingLocalImplicitInstantiations.swap(
           S.PendingLocalImplicitInstantiations);
     }