[cfe-commits] r44561 - /cfe/trunk/Driver/clang.cpp
Ted Kremenek
kremenek at apple.com
Mon Dec 3 15:26:00 PST 2007
Author: kremenek
Date: Mon Dec 3 17:25:59 2007
New Revision: 44561
URL: http://llvm.org/viewvc/llvm-project?rev=44561&view=rev
Log:
Fixed order of operands to strstr call.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=44561&r1=44560&r2=44561&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Dec 3 17:25:59 2007
@@ -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;
More information about the cfe-commits
mailing list