diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-03 05:58:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-03 05:58:22 +0000 |
commit | de044e5bb84655a22aab983151f3b1cb1b01c3c9 (patch) | |
tree | ef918a2e1eebe9b280fa096660a73a17799c65f2 /clang/lib/Basic/DiagnosticIDs.cpp | |
parent | 2e809ce7b464ccad9d0a76d7e4c221f5631f2f97 (diff) | |
download | bcm5719-llvm-de044e5bb84655a22aab983151f3b1cb1b01c3c9.tar.gz bcm5719-llvm-de044e5bb84655a22aab983151f3b1cb1b01c3c9.zip |
Change the fixed array of FixitHints to a SmallVector to lift off
the limit on the number of fixits.
llvm-svn: 149676
Diffstat (limited to 'clang/lib/Basic/DiagnosticIDs.cpp')
-rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index 9f09f72e868..1e8f44d56dd 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -799,12 +799,12 @@ bool DiagnosticIDs::ProcessDiag(DiagnosticsEngine &Diag) const { // If we have any Fix-Its, make sure that all of the Fix-Its point into // source locations that aren't macro expansions. If any point into macro // expansions, remove all of the Fix-Its. - for (unsigned I = 0, N = Diag.NumFixItHints; I != N; ++I) { + for (unsigned I = 0, N = Diag.FixItHints.size(); I != N; ++I) { const FixItHint &FixIt = Diag.FixItHints[I]; if (FixIt.RemoveRange.isInvalid() || FixIt.RemoveRange.getBegin().isMacroID() || FixIt.RemoveRange.getEnd().isMacroID()) { - Diag.NumFixItHints = 0; + Diag.FixItHints.clear(); break; } } |