summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2016-08-17 20:30:52 +0000
committerJustin Bogner <mail@justinbogner.com>2016-08-17 20:30:52 +0000
commitcd1d5aaf2e317122ddb08bf8d026a6cf8b42a9d8 (patch)
treea7454511a28342557b6b2722f014529f399ecffe /llvm/lib/Support/CommandLine.cpp
parentde3aea04129bcde27b025e4619519b4ff01be226 (diff)
downloadbcm5719-llvm-cd1d5aaf2e317122ddb08bf8d026a6cf8b42a9d8.tar.gz
bcm5719-llvm-cd1d5aaf2e317122ddb08bf8d026a6cf8b42a9d8.zip
Replace a few more "fall through" comments with LLVM_FALLTHROUGH
Follow up to r278902. I had missed "fall through", with a space. llvm-svn: 278970
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 102bc909889..551cdefcbe4 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -1228,7 +1228,7 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
switch (PositionalOpts[i]->getNumOccurrencesFlag()) {
case cl::Optional:
Done = true; // Optional arguments want _at most_ one value
- // FALL THROUGH
+ LLVM_FALLTHROUGH;
case cl::ZeroOrMore: // Zero or more will take all they can get...
case cl::OneOrMore: // One or more will take all they can get...
ProvidePositionalOption(PositionalOpts[i],
@@ -1282,7 +1282,7 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
Opt.second->error("must be specified at least once!");
ErrorParsing = true;
}
- // Fall through
+ LLVM_FALLTHROUGH;
default:
break;
}
@@ -1337,7 +1337,7 @@ bool Option::addOccurrence(unsigned pos, StringRef ArgName, StringRef Value,
case Required:
if (NumOccurrences > 1)
return error("must occur exactly one time!", ArgName);
- // Fall through
+ LLVM_FALLTHROUGH;
case OneOrMore:
case ZeroOrMore:
case ConsumeAfter:
OpenPOWER on IntegriCloud