diff options
author | John McCall <rjmccall@apple.com> | 2012-07-02 23:58:38 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-07-02 23:58:38 +0000 |
commit | e0c1168ec7910a1a7ed08df4d4f0c58c2fa2ecd1 (patch) | |
tree | aed58809e392029eb37c5a12f21da3e0b6156685 /lib/CodeGen/CGValue.h | |
parent | 109e6de8db5614fa327754a279ca4f0be04dea3f (diff) |
Significantly simplify CGExprAgg's logic about ignored results:
if we want to ignore a result, the Dest will be null. Otherwise,
we must copy into it. This means we need to ensure a slot when
loading from a volatile l-value.
With all that in place, fix a bug with chained assignments into
__block variables of aggregate type where we were losing insight into
the actual source of the value during the second assignment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGValue.h')
-rw-r--r-- | lib/CodeGen/CGValue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGValue.h b/lib/CodeGen/CGValue.h index dd9208f913..a46f313f1f 100644 --- a/lib/CodeGen/CGValue.h +++ b/lib/CodeGen/CGValue.h @@ -389,7 +389,8 @@ public: return AV; } - static AggValueSlot forLValue(LValue LV, IsDestructed_t isDestructed, + static AggValueSlot forLValue(const LValue &LV, + IsDestructed_t isDestructed, NeedsGCBarriers_t needsGC, IsAliased_t isAliased, IsZeroed_t isZeroed = IsNotZeroed) { |