From 145050288c145d9ace20ab9ba92fb7cc560d2044 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 23 May 2014 01:37:30 +0000 Subject: [PATCH] Clean DiagRanges. Fix a possible problem introduced in r209468. llvm-svn: 209491 --- clang/include/clang/Basic/PartialDiagnostic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/include/clang/Basic/PartialDiagnostic.h b/clang/include/clang/Basic/PartialDiagnostic.h index bb55b626b75f..8ae3b22b0cc8 100644 --- a/clang/include/clang/Basic/PartialDiagnostic.h +++ b/clang/include/clang/Basic/PartialDiagnostic.h @@ -92,6 +92,7 @@ public: Storage *Result = FreeList[--NumFreeListEntries]; Result->NumDiagArgs = 0; + Result->DiagRanges.clear(); Result->FixItHints.clear(); return Result; }