diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-11 16:34:24 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-12-11 16:34:24 +0000 |
commit | 9f32a920c6f21a2719e220cd50d708ab4e5543fd (patch) | |
tree | bd05411f756fd7e28489d7273ad937b7d210cead /lib/CodeGen | |
parent | 6d6a83c3754b449ac24cb83bc6d3a50b10535061 (diff) |
Reuse forAddr to create ignored AggValueSlots.
Silences valgrind warnings about uninitalized alignment values.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGValue.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h index b8fe2a25b4..744a6e02f9 100644 --- a/lib/CodeGen/CGValue.h +++ b/lib/CodeGen/CGValue.h @@ -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. |