summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-01-29 05:05:36 +0000
committerAnders Carlsson <andersca@mac.com>2010-01-29 05:05:36 +0000
commit5d8645b150a6c1421b82ad93ab7e316e454a2708 (patch)
treed29603c791dd18adebaee595abbc8a317f6603b1 /clang/lib/CodeGen/CGExprAgg.cpp
parent0fcbe369aa9a1a4dfc06af31383607dc2075da43 (diff)
downloadbcm5719-llvm-5d8645b150a6c1421b82ad93ab7e316e454a2708.tar.gz
bcm5719-llvm-5d8645b150a6c1421b82ad93ab7e316e454a2708.zip
Simplify EmitLValueForField - we can get whether the field is part of a union or not from the FieldDecl (through its DeclContext).
llvm-svn: 94798
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index c852d65b859..2cbaa1153cd 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/lib/CodeGen/CGExprAgg.cpp
@@ -627,7 +627,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
// FIXME: volatility
FieldDecl *Field = E->getInitializedFieldInUnion();
- LValue FieldLoc = CGF.EmitLValueForField(DestPtr, Field, true, 0);
+ LValue FieldLoc = CGF.EmitLValueForField(DestPtr, Field, 0);
if (NumInitElements) {
// Store the initializer into the field
@@ -653,7 +653,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
continue;
// FIXME: volatility
- LValue FieldLoc = CGF.EmitLValueForField(DestPtr, *Field, false, 0);
+ LValue FieldLoc = CGF.EmitLValueForField(DestPtr, *Field, 0);
// We never generate write-barries for initialized fields.
LValue::SetObjCNonGC(FieldLoc, true);
if (CurInitVal < NumInitElements) {
OpenPOWER on IntegriCloud