forked from OSchip/llvm-project
Reuse forAddr to create ignored AggValueSlots.
Silences valgrind warnings about uninitalized alignment values. llvm-svn: 146342
This commit is contained in:
parent
4683740967
commit
4257ab3ff0
|
@ -357,11 +357,8 @@ public:
|
|||
/// ignored - Returns an aggregate value slot indicating that the
|
||||
/// aggregate value is being ignored.
|
||||
static AggValueSlot ignored() {
|
||||
AggValueSlot AV;
|
||||
AV.Addr = 0;
|
||||
AV.Quals = Qualifiers();
|
||||
AV.DestructedFlag = AV.ObjCGCFlag = AV.ZeroedFlag = AV.AliasedFlag = false;
|
||||
return AV;
|
||||
return forAddr(0, CharUnits(), Qualifiers(), IsNotDestructed,
|
||||
DoesNotNeedGCBarriers, IsNotAliased);
|
||||
}
|
||||
|
||||
/// forAddr - Make a slot for an aggregate value.
|
||||
|
|
Loading…
Reference in New Issue