[cfe-commits] r146747 - /cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
Anna Zaks
ganna at apple.com
Fri Dec 16 10:28:46 PST 2011
Author: zaks
Date: Fri Dec 16 12:28:45 2011
New Revision: 146747
URL: http://llvm.org/viewvc/llvm-project?rev=146747&view=rev
Log:
Fixup to the relaxed diagnostic verification option r146633.
We should exit when matching the '+' even if nothing was found to
prevent searching for all UNIT_MAX items.
Modified:
cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
Modified: cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp?rev=146747&r1=146746&r2=146747&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp (original)
+++ cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp Fri Dec 16 12:28:45 2011
@@ -443,8 +443,10 @@
break;
}
if (II == IE) {
- if (D.Count == D.OneOrMoreCount && FoundOnce) {
- // We are only interested in at least one match and we found one.
+ if (D.Count == D.OneOrMoreCount) {
+ if (!FoundOnce)
+ LeftOnly.push_back(*I);
+ // We are only interested in at least one match, so exit the loop.
break;
}
// Not found.
More information about the cfe-commits
mailing list