r222552 - Add an assertion for detecting missed/uncorrected TypoExprs.
Kaelyn Takata
rikka at google.com
Fri Nov 21 10:48:06 PST 2014
Author: rikka
Date: Fri Nov 21 12:48:06 2014
New Revision: 222552
URL: http://llvm.org/viewvc/llvm-project?rev=222552&view=rev
Log:
Add an assertion for detecting missed/uncorrected TypoExprs.
Modified:
cfe/trunk/lib/Sema/Sema.cpp
Modified: cfe/trunk/lib/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?rev=222552&r1=222551&r2=222552&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.cpp (original)
+++ cfe/trunk/lib/Sema/Sema.cpp Fri Nov 21 12:48:06 2014
@@ -245,6 +245,8 @@ Sema::~Sema() {
// Destroys data sharing attributes stack for OpenMP
DestroyDataSharingAttributesStack();
+
+ assert(DelayedTypos.empty() && "Uncorrected typos!");
}
/// makeUnavailableInSystemHeader - There is an error in the current
More information about the cfe-commits
mailing list