Reuse forAddr to create ignored AggValueSlots.

Silences valgrind warnings about uninitalized alignment values.

llvm-svn: 146342
This commit is contained in:
Benjamin Kramer 2011-12-11 16:34:24 +00:00
parent 4683740967
commit 4257ab3ff0
1 changed files with 2 additions and 5 deletions

View File

@ -357,11 +357,8 @@ public:
/// ignored - Returns an aggregate value slot indicating that the /// ignored - Returns an aggregate value slot indicating that the
/// aggregate value is being ignored. /// aggregate value is being ignored.
static AggValueSlot ignored() { static AggValueSlot ignored() {
AggValueSlot AV; return forAddr(0, CharUnits(), Qualifiers(), IsNotDestructed,
AV.Addr = 0; DoesNotNeedGCBarriers, IsNotAliased);
AV.Quals = Qualifiers();
AV.DestructedFlag = AV.ObjCGCFlag = AV.ZeroedFlag = AV.AliasedFlag = false;
return AV;
} }
/// forAddr - Make a slot for an aggregate value. /// forAddr - Make a slot for an aggregate value.