diff --git a/utils/TableGen/StringMatcher.cpp b/utils/TableGen/StringMatcher.cpp index 2d2f7735788..ccd01d253ff 100644 --- a/utils/TableGen/StringMatcher.cpp +++ b/utils/TableGen/StringMatcher.cpp @@ -98,7 +98,9 @@ EmitStringMatcherForChar(const std::vector &Matches, MatchesByLetter.begin(), E = MatchesByLetter.end(); LI != E; ++LI) { // TODO: escape hard stuff (like \n) if we ever care about it. OS << Indent << "case '" << LI->first << "':\t // " - << LI->second.size() << " strings to match.\n"; + << LI->second.size() << " string"; + if (LI->second.size() != 1) OS << 's'; + OS << " to match.\n"; if (EmitStringMatcherForChar(LI->second, CharNo+1, IndentCount+1)) OS << Indent << " break;\n"; }