Fixed order of operands to strstr call.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44561 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 0b04038..eeaf649 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -427,7 +427,7 @@
if (TargetTriple.getValue().empty()) {
// HACK: For non-darwin systems, we don't have any real target support
// yet. For these systems, set the target to darwin.
- if (!strstr("darwin",LLVM_HOSTTRIPLE))
+ if (!strstr(LLVM_HOSTTRIPLE,"darwin"))
base_triple = "i386-apple-darwin";
else
base_triple = LLVM_HOSTTRIPLE;