[llvm-commits] [llvm-gcc-4.2] r56875 - /llvm-gcc-4.2/trunk/gcc/config/darwin.c
Evan Cheng
evan.cheng at apple.com
Tue Sep 30 13:40:48 PDT 2008
Author: evancheng
Date: Tue Sep 30 15:40:47 2008
New Revision: 56875
URL: http://llvm.org/viewvc/llvm-project?rev=56875&view=rev
Log:
Unbreak Apple style build.
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=56875&r1=56874&r2=56875&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.c Tue Sep 30 15:40:47 2008
@@ -2675,13 +2675,14 @@
/* LLVM LOCAL begin radar 6230142 */
unsigned darwin_llvm_override_target_version(const char *triple, char **new_triple) {
int len = 0, pad = 0, version = 0;
+ char *substr;
if (!darwin_macosx_version_min)
return 0;
/* Triple string is expected to look something like 'i386-*-darwin?' or
'i386-*-darwin9.5.0' */
- char *substr = strstr(triple, "darwin");
+ substr = strstr(triple, "darwin");
if (!substr)
return 0;
len = substr + 6 - triple;
More information about the llvm-commits
mailing list