From 6b006047e2e7c04538880f2b980ecb3052053b5a Mon Sep 17 00:00:00 2001 From: Kaelyn Takata Date: Fri, 21 Nov 2014 18:48:06 +0000 Subject: [PATCH] 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 --- lib/Sema/Sema.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0