diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 12:23:29 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-13 12:23:29 +0000 |
commit | a88162c1b3922f64914c55ebe2c558881e960426 (patch) | |
tree | 5e7f5e0e4614ba39869cb8729ea217682ea601a7 /lib/Driver/Driver.cpp | |
parent | ba1021388e6839b76c8968b931189361c7286674 (diff) |
Driver: Fix thinko in Darwin host identification.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66889 91177308-0d34-0410-b5e6-96231b3b80d8
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()); |