]> granicus.if.org Git - clang/commitdiff
Driver: Fix thinko in Darwin host identification.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 13 Mar 2009 12:23:29 +0000 (12:23 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 13 Mar 2009 12:23:29 +0000 (12:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66889 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 4efd4608e1a4bfe4734e76be9573588e248288ac..fdc60daf0bdbd8497bda3f0c53a36693250e4001 100644 (file)
@@ -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());