aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp
index 26bcb59ffd..c817cde4e9 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -601,14 +601,9 @@ void Driver::BuildUniversalActions(const ArgList &Args,
Arg *A = *it;
if (A->getOption().getId() == options::OPT_arch) {
- const char *Name = A->getValue(Args);
-
- // FIXME: We need to handle canonicalization of the specified
- // arch?
-
A->claim();
- if (ArchNames.insert(Name))
- Archs.push_back(Name);
+ if (ArchNames.insert(A->getValue(Args)))
+ Archs.push_back(A->getValue(Args));
}
}