commit | 2d9eb21325a0854e86de7344f54a8e6cef2a97ad | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Nov 15 15:29:30 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Nov 15 15:29:30 2011 +0000 |
tree | ee3f61717e10dcfab1b085808c0bceb7a66cbf9b | |
parent | 037ad1b8f00b80aa76e73e3118133e9a59fd177e [diff] |
Teach the CFG builder how to properly destroy temporaries who lifetimes have been extended via reference binding. The type of the reference and the type of the temporary are not necessarily the same, which could cause a crash. Fixes <rdar://problem/10398199>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144646 91177308-0d34-0410-b5e6-96231b3b80d8