From: Kaelyn Takata Date: Fri, 21 Nov 2014 18:48:06 +0000 (+0000) Subject: Add an assertion for detecting missed/uncorrected TypoExprs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b006047e2e7c04538880f2b980ecb3052053b5a;p=clang Add an assertion for detecting missed/uncorrected TypoExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222552 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 66a0443250..61ee7702c0 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -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