summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/PartialDiagnostic.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-05-23 01:37:30 +0000
committerAlexander Kornienko <alexfh@google.com>2014-05-23 01:37:30 +0000
commit41a49d921f07d786199780b1054a0ee839771168 (patch)
tree25eba327651d985af2c76fe8cc87aeb5b7dba32b /include/clang/Basic/PartialDiagnostic.h
parenta67eeb084e52c1c3e64a77be5af952f2a0c9e8c8 (diff)
Clean DiagRanges. Fix a possible problem introduced in r209468.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/PartialDiagnostic.h')
-rw-r--r--include/clang/Basic/PartialDiagnostic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/PartialDiagnostic.h b/include/clang/Basic/PartialDiagnostic.h
index bb55b626b7..8ae3b22b0c 100644
--- a/include/clang/Basic/PartialDiagnostic.h
+++ b/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;
}