[llvm-branch-commits] [cfe-branch] r73681 - in /cfe/branches/Apple/Dib: lib/CodeGen/CGExprAgg.cpp test/CodeGenObjC/objc2-no-write-barrier.m
Daniel Dunbar
daniel at zuster.org
Wed Jun 17 21:56:50 PDT 2009
Author: ddunbar
Date: Wed Jun 17 23:56:50 2009
New Revision: 73681
URL: http://llvm.org/viewvc/llvm-project?rev=73681&view=rev
Log:
Merge in 72492 (<rdar://problem/6982258>):
------------------------------------------------------------------------
r72492 | fjahanian | 2009-05-27 12:54:11 -0700 (Wed, 27 May 2009) | 2 lines
No write-barrier for initializations.
------------------------------------------------------------------------
Added:
cfe/branches/Apple/Dib/test/CodeGenObjC/objc2-no-write-barrier.m
- copied unchanged from r72492, cfe/trunk/test/CodeGenObjC/objc2-no-write-barrier.m
Modified:
cfe/branches/Apple/Dib/lib/CodeGen/CGExprAgg.cpp
Modified: cfe/branches/Apple/Dib/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/Dib/lib/CodeGen/CGExprAgg.cpp?rev=73681&r1=73680&r2=73681&view=diff
==============================================================================
--- cfe/branches/Apple/Dib/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/branches/Apple/Dib/lib/CodeGen/CGExprAgg.cpp Wed Jun 17 23:56:50 2009
@@ -448,6 +448,8 @@
// FIXME: volatility
LValue FieldLoc = CGF.EmitLValueForField(DestPtr, *Field, false, 0);
+ // We never generate write-barries for initialized fields.
+ LValue::SetObjCNonGC(FieldLoc, true);
if (CurInitVal < NumInitElements) {
// Store the initializer into the field
EmitInitializationToLValue(E->getInit(CurInitVal++), FieldLoc);
More information about the llvm-branch-commits
mailing list