commit | 6591271275f7a3db357f3cb7af37ef86e800e4ba | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Tue Apr 12 22:02:02 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Tue Apr 12 22:02:02 2011 +0000 |
tree | 50732610e13030b42681eb38f260dadf701299ad | |
parent | f077c0d4bb1598f9201cdc38592634ca8922da6c [diff] |
We can't emit an aggregate cast as its sub-expression in general just because the result is ignored. The particular example here is with property l-values, but there could be all sorts of lovely casts that this isn't safe for. Sink the check into the one case that seems to actually be capable of honoring this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129397 91177308-0d34-0410-b5e6-96231b3b80d8