[cfe-commits] r72352 - /cfe/trunk/lib/CodeGen/CGExprAgg.cpp
Mike Stump
mrs at apple.com
Sat May 23 16:48:13 PDT 2009
Author: mrs
Date: Sat May 23 18:48:13 2009
New Revision: 72352
URL: http://llvm.org/viewvc/llvm-project?rev=72352&view=rev
Log:
Propagate volatile around for property references.
Modified:
cfe/trunk/lib/CodeGen/CGExprAgg.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprAgg.cpp?rev=72352&r1=72351&r2=72352&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprAgg.cpp Sat May 23 18:48:13 2009
@@ -227,13 +227,12 @@
// We have to special case property setters, otherwise we must have
// a simple lvalue (no aggregates inside vectors, bitfields).
if (LHS.isPropertyRef()) {
- // FIXME: Volatility?
llvm::Value *AggLoc = DestPtr;
if (!AggLoc)
AggLoc = CGF.CreateTempAlloca(CGF.ConvertType(E->getRHS()->getType()));
- CGF.EmitAggExpr(E->getRHS(), AggLoc, false);
+ CGF.EmitAggExpr(E->getRHS(), AggLoc, VolatileDest);
CGF.EmitObjCPropertySet(LHS.getPropertyRefExpr(),
- RValue::getAggregate(AggLoc));
+ RValue::getAggregate(AggLoc, VolatileDest));
}
else if (LHS.isKVCRef()) {
// FIXME: Volatility?
More information about the cfe-commits
mailing list