diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-18 20:19:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-18 20:19:19 +0000 |
commit | 1d189e187b1bf7d7677aefd7482bcdad29683a0c (patch) | |
tree | 13e4c31b23370e854eab905ad11c9ea3061cf9ae /lib/Driver/ToolChains.cpp | |
parent | d896e1ad8634ba84f2f2b2e9e35257b3845fc40b (diff) |
Driver: Store Option ID field as unsigned to drop dependency on the options
type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.cpp')
-rw-r--r-- | lib/Driver/ToolChains.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index ae8119d33d..b83e399411 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -365,8 +365,7 @@ DerivedArgList *Darwin::TranslateArgs(InputArgList &Args, // Sob. These is strictly gcc compatible for the time being. Apple // gcc translates options twice, which means that self-expanding // options add duplicates. - options::ID id = A->getOption().getId(); - switch (id) { + switch ((options::ID) A->getOption().getId()) { default: DAL->append(A); break; |