From: Daniel Dunbar Date: Fri, 13 Mar 2009 12:23:29 +0000 (+0000) Subject: Driver: Fix thinko in Darwin host identification. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a88162c1b3922f64914c55ebe2c558881e960426;p=clang Driver: Fix thinko in Darwin host identification. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66889 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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());