aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-05-21 13:19:09 -0700
committerGitHub <noreply@github.com>2025-05-21 13:19:09 -0700
commita76bf4da53182baace54fd69f9d38fc10e6b8e85 (patch)
tree0bddac47325742f488ab7fa8ee2e260a33d921d0 /llvm/lib/Support/CommandLine.cpp
parent89d9a83b704a8f6b5bd64dac93095a9228c601d5 (diff)
downloadllvm-a76bf4da53182baace54fd69f9d38fc10e6b8e85.zip
llvm-a76bf4da53182baace54fd69f9d38fc10e6b8e85.tar.gz
llvm-a76bf4da53182baace54fd69f9d38fc10e6b8e85.tar.bz2
[NFC][ADT/Support] Add {} for else when if body has {} (#140758)
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index ced7e7b..d5c3cba 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -2692,8 +2692,9 @@ void HelpPrinterWrapper::operator=(bool Value) {
CommonOptions->HLOp.setHiddenFlag(NotHidden);
CategorizedPrinter = true; // Invoke categorized printer
- } else
+ } else {
UncategorizedPrinter = true; // Invoke uncategorized printer
+ }
}
// Print the value of each option.