r195906 - Sema: Assert that there are no pending local instantiations left
David Majnemer
david.majnemer at gmail.com
Wed Nov 27 17:45:16 PST 2013
Author: majnemer
Date: Wed Nov 27 19:45:16 2013
New Revision: 195906
URL: http://llvm.org/viewvc/llvm-project?rev=195906&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/Sema/Sema.h
Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=195906&r1=195905&r2=195906&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Wed Nov 27 19:45:16 2013
@@ -6414,6 +6414,8 @@ public:
}
~SavePendingLocalImplicitInstantiationsRAII() {
+ assert(S.PendingLocalImplicitInstantiations.empty() &&
+ "there shouldn't be any pending local implicit instantiations");
SavedPendingLocalImplicitInstantiations.swap(
S.PendingLocalImplicitInstantiations);
}
More information about the cfe-commits
mailing list