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 | 4e8ca4fa14257bae769b4bdad448acf861a83a6a (patch) | |
| tree | b6ddacd9267cdd2e53dca042ecac3052e007c7b4 /clang/lib/CodeGen/CGValue.h | |
| parent | fc7c677c8db408e77ae6121853fdeba8036ccb8d (diff) | |
| download | bcm5719-llvm-4e8ca4fa14257bae769b4bdad448acf861a83a6a.tar.gz bcm5719-llvm-4e8ca4fa14257bae769b4bdad448acf861a83a6a.zip | |
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.
llvm-svn: 159630
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
| -rw-r--r-- | clang/lib/CodeGen/CGValue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h index dd9208f9138..a46f313f1f7 100644 --- a/clang/lib/CodeGen/CGValue.h +++ b/clang/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) { |

