aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index b526bb157f..316b93a64d 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1019,7 +1019,10 @@ int main(int argc, char **argv) {
// Create triples, and create the TargetInfo.
std::vector<std::string> triples;
CreateTargetTriples(triples);
- Target = CreateTargetInfo(SourceMgr,triples,&Diags);
+ Target = TargetInfo::CreateTargetInfo(SourceMgr,
+ &triples[0],
+ &triples[0]+triples.size(),
+ &Diags);
if (Target == 0) {
fprintf(stderr, "Sorry, I don't know what target this is: %s\n",