[llvm-commits] [llvm-gcc-4.2] r53583 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Dale Johannesen
dalej at apple.com
Mon Jul 14 17:37:10 PDT 2008
Author: johannes
Date: Mon Jul 14 19:37:09 2008
New Revision: 53583
URL: http://llvm.org/viewvc/llvm-project?rev=53583&view=rev
Log:
YA missing-ObjC-metadata-at-O0 bug. This one
only affects ObjC2. Fixes:
objc/execute/bycopy-3.m
objc/execute/formal_protocol-5.m
objc/execute/protocol-isEqual-2.m
objc/execute/protocol-isEqual-3.m
objc.dg/lookup-1.m
objc.dg/proto-qual-1.m
in 64-bit mode.
Modified:
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=53583&r1=53582&r2=53583&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Mon Jul 14 19:37:09 2008
@@ -12041,6 +12041,11 @@
/* APPLE LOCAL end radar 4695109 */
expr = convert (objc_protocol_type, build_fold_addr_expr (expr));
finish_var_decl (decl, expr);
+#ifdef ENABLE_LLVM
+ /* At -O0, we may have emitted references to the decl earlier. */
+ if (!optimize)
+ reset_initializer_llvm(decl);
+#endif
}
}
More information about the llvm-commits
mailing list