summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-08 19:09:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-08 19:09:22 +0000
commitc321e534022768d424cf5c5ab43f99489e55bf07 (patch)
treeb8cb4306701534ee6e9ee7ea055dbc25b0c92494 /llvm/include/llvm/Support/CommandLine.h
parent19e88c1ff696313db48618d6ced7afcd5253fe35 (diff)
downloadbcm5719-llvm-c321e534022768d424cf5c5ab43f99489e55bf07.tar.gz
bcm5719-llvm-c321e534022768d424cf5c5ab43f99489e55bf07.zip
Apply most suggestions of clang-tidy's performance-unnecessary-value-param
Avoids unnecessary copies. All changes audited & pass tests with asan. No functional change intended. llvm-svn: 272190
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index 943d2df3770..432ae267478 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -946,7 +946,7 @@ public:
// getValueName - Overload in subclass to provide a better default value.
const char *getValueName() const override { return "string"; }
- void printOptionDiff(const Option &O, StringRef V, OptVal Default,
+ void printOptionDiff(const Option &O, StringRef V, const OptVal &Default,
size_t GlobalWidth) const;
// An out-of-line virtual method to provide a 'home' for this class.
OpenPOWER on IntegriCloud