From b02575a5706112409f8dfab1e27a91a3076f3445 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 28 Nov 2013 01:45:16 +0000 Subject: [PATCH] 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/trunk@195906 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index b635d9b271..fbb46ff60b 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); } -- 2.40.0