]> granicus.if.org Git - clang/commitdiff
Relax assertion to fail during crash recovery cleanup.
authorTed Kremenek <kremenek@apple.com>
Mon, 21 Mar 2011 18:40:10 +0000 (18:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 21 Mar 2011 18:40:10 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128010 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Diagnostic.cpp

index f654ede49d02ed5d698850def3206f501ad6ab7d..dc81f88c5c595daac7aa02fecfa9e1ba6f551826 100644 (file)
@@ -687,7 +687,5 @@ PartialDiagnostic::StorageAllocator::StorageAllocator() {
 PartialDiagnostic::StorageAllocator::~StorageAllocator() {
   // Don't assert if we are in a CrashRecovery context, as this
   // invariant may be invalidated during a crash.
-  assert((NumFreeListEntries == NumCached ||
-          llvm::CrashRecoveryContext::isRecoveringFromCrash()) 
-         && "A partial is on the lamb");
+  assert((NumFreeListEntries == NumCached || llvm::CrashRecoveryContext::isRecoveringFromCrash()) && "A partial is on the lamb");
 }