From: Ted Kremenek Date: Mon, 3 Dec 2007 23:25:59 +0000 (+0000) Subject: Fixed order of operands to strstr call. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05ca599f48d7855568cfce71253e1cffaeb052ac;p=clang 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 0b04038b05..eeaf6496e7 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -427,7 +427,7 @@ static void CreateTargetTriples(std::vector& 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;