summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/DiagnosticIDs.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-03 05:58:22 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-03 05:58:22 +0000
commitde044e5bb84655a22aab983151f3b1cb1b01c3c9 (patch)
treeef918a2e1eebe9b280fa096660a73a17799c65f2 /clang/lib/Basic/DiagnosticIDs.cpp
parent2e809ce7b464ccad9d0a76d7e4c221f5631f2f97 (diff)
downloadbcm5719-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.cpp4
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;
}
}
OpenPOWER on IntegriCloud