commit | 5467209f23097d5b0fc628c18aaa85e73d386598 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Thu Jul 15 18:04:13 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Thu Jul 15 18:04:13 2010 +0000 |
tree | c2fefa1bef840cf3e33150dd17a8e796ec47f42d | |
parent | 24978863d13e12278799df62edaa2ddf33ff2fba [diff] |
Teach CodeGenFunction::EmitCastLValue() to handle casts to an lvalue that involve binding a reference to a pure rvalue temporary (e.g., not a class temporary), by creating a new temporary and copying the result there. Fixes PR6024. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108431 91177308-0d34-0410-b5e6-96231b3b80d8