diff options
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r-- | lib/Driver/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 4efd4608e1..fdc60daf0b 100644 --- a/lib/Driver/Driver.cpp +++ b/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()); |