[llvm-commits] [llvm-gcc-4.2] r56392 - /llvm-gcc-4.2/trunk/gcc/config/darwin.c
Bill Wendling
isanbard at gmail.com
Sat Sep 20 16:08:06 PDT 2008
Author: void
Date: Sat Sep 20 18:08:03 2008
New Revision: 56392
URL: http://llvm.org/viewvc/llvm-project?rev=56392&view=rev
Log:
3AM hacking leads to icky code
Modified:
llvm-gcc-4.2/trunk/gcc/config/darwin.c
Modified: llvm-gcc-4.2/trunk/gcc/config/darwin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin.c?rev=56392&r1=56391&r2=56392&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.c Sat Sep 20 18:08:03 2008
@@ -2684,8 +2684,8 @@
len = strlen (triple);
if (len < 7)
return 0;
- if ((strncmp (&triple[len - 7], "darwin", 6) != 0) &&
- (len < 11 || strncmp (&triple[len - 11], "darwin", 6) != 0))
+ if (strncmp (&triple[len - 7], "darwin", 6) != 0 ||
+ (len > 11 && strncmp (&triple[len - 11], "darwin", 6) != 0))
return 0;
/* llvm-gcc doesn't support pre-10.0 systems. */
More information about the llvm-commits
mailing list