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
|
/// 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.
|
||||||
|
|
Loading…
Reference in New Issue