summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Driver/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index 4efd4608e1a..fdc60daf0bd 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -583,7 +583,7 @@ HostInfo *Driver::GetHostInfo(const char *Triple) {
} else
Arch = Triple;
- if (memcmp(&Platform[0], "darwin", 6) == 0)
+ if (memcmp(&OS[0], "darwin", 6) == 0)
return new DarwinHostInfo(Arch.c_str(), Platform.c_str(), OS.c_str());
return new UnknownHostInfo(Arch.c_str(), Platform.c_str(), OS.c_str());
OpenPOWER on IntegriCloud