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 4efd460..fdc60da 100644
--- a/lib/Driver/Driver.cpp
+++ b/lib/Driver/Driver.cpp
@@ -583,7 +583,7 @@
} 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());