commit | ac418162692a951ca3796d6830496a85a2d12493 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Thu Apr 22 01:10:34 2010 +0000 |
committer | John McCall <rjmccall@apple.com> | Thu Apr 22 01:10:34 2010 +0000 |
tree | 30b82e9e54c382ecd6fb56eaf7286244ede9abc7 | |
parent | a41a8c5972c2632247ae7913cf6ce65d45f7e702 [diff] |
Call PerformCopyInitialization to properly initialize the exception temporary in a throw expression. Use EmitAnyExprToMem to emit the throw expression, which magically elides the final copy-constructor call (which raises a new strict-compliance bug, but baby steps). Give __cxa_throw a destructor pointer if the exception type has a non-trivial destructor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102039 91177308-0d34-0410-b5e6-96231b3b80d8