[llvm] e540546 - [OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 08:26:32 PST 2025
Author: Alex MacLean
Date: 2025-01-08T08:26:26-08:00
New Revision: e54054684e12553b88f2126a23e9a19a0cfebf83
URL: https://github.com/llvm/llvm-project/commit/e54054684e12553b88f2126a23e9a19a0cfebf83
DIFF: https://github.com/llvm/llvm-project/commit/e54054684e12553b88f2126a23e9a19a0cfebf83.diff
LOG: [OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
While VALUES is not actually used by LLVM_MAKE_OPT_ID_WITH_ID_PREFIX
threading the correct value through is clearer and avoids the potential
for strange bugs if this ever changes.
Added:
Modified:
llvm/include/llvm/Option/OptTable.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Option/OptTable.h b/llvm/include/llvm/Option/OptTable.h
index decb6cb5455ebc..38a03fef7ae124 100644
--- a/llvm/include/llvm/Option/OptTable.h
+++ b/llvm/include/llvm/Option/OptTable.h
@@ -451,7 +451,7 @@ class PrecomputedOptTable : public OptTable {
LLVM_MAKE_OPT_ID_WITH_ID_PREFIX(OPT_, PREFIXES_OFFSET, PREFIXED_NAME_OFFSET, \
ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, \
VISIBILITY, PARAM, HELPTEXT, \
- HELPTEXTSFORVARIANTS, METAVAR, VALUE)
+ HELPTEXTSFORVARIANTS, METAVAR, VALUES)
#define LLVM_CONSTRUCT_OPT_INFO_WITH_ID_PREFIX( \
ID_PREFIX, PREFIXES_OFFSET, PREFIXED_NAME_OFFSET, ID, KIND, GROUP, ALIAS, \
More information about the llvm-commits
mailing list