Clean DiagRanges. Fix a possible problem introduced in r209468.
authorAlexander Kornienko <alexfh@google.com>
Fri, 23 May 2014 01:37:30 +0000 (01:37 +0000)
committerAlexander Kornienko <alexfh@google.com>
Fri, 23 May 2014 01:37:30 +0000 (01:37 +0000)
llvm-svn: 209491

clang/include/clang/Basic/PartialDiagnostic.h

index bb55b62..8ae3b22 100644 (file)
@@ -92,6 +92,7 @@ public:
 
       Storage *Result = FreeList[--NumFreeListEntries];
       Result->NumDiagArgs = 0;
+      Result->DiagRanges.clear();
       Result->FixItHints.clear();
       return Result;
     }