]> granicus.if.org Git - clang/commitdiff
Fixed order of operands to strstr call.
authorTed Kremenek <kremenek@apple.com>
Mon, 3 Dec 2007 23:25:59 +0000 (23:25 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 3 Dec 2007 23:25:59 +0000 (23:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44561 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 0b04038b05ac998573061813f0802dcee4b33991..eeaf6496e75484f50f030ec791026f5915cd532f 100644 (file)
@@ -427,7 +427,7 @@ static void CreateTargetTriples(std::vector<std::string>& triples) {
   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;