summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-10-08 19:41:06 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-10-08 19:41:06 +0000
commite5f86e2485e267ae93fa7e5139fc1c8c3c22335e (patch)
tree40d00d3bed76e20a0382cf1fb81b1ff57cca38a6 /utils
parentef2871bb8bcfe4f4235f0ff80496f15f480028be (diff)
Turn cl::values() (for enum) from a vararg function to using C++ variadic template
The core of the change is supposed to be NFC, however it also fixes what I believe was an undefined behavior when calling: va_start(ValueArgs, Desc); with Desc being a StringRef. Differential Revision: https://reviews.llvm.org/D25342 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/TableGen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index 9aa0c495ce..6fb5b00c4b 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -135,8 +135,7 @@ cl::opt<ActionType> Action(
clEnumValN(GenAttrDocs, "gen-attr-docs",
"Generate attribute documentation"),
clEnumValN(GenDiagDocs, "gen-diag-docs",
- "Generate attribute documentation"),
- clEnumValEnd));
+ "Generate attribute documentation")));
cl::opt<std::string>
ClangComponent("clang-component",