diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-03 05:03:02 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-06-03 05:03:02 +0000 |
| commit | 8a66bf78becf05a24e8251379f3843d1fceb627f (patch) | |
| tree | 454d5dfa5303e83777843aa08659539a1c45c9f1 /lib/CodeGen/CGExpr.cpp | |
| parent | b45a4d217cf1513b14a143143a2c3af8738a3cd7 (diff) | |
| download | clang-8a66bf78becf05a24e8251379f3843d1fceb627f.tar.gz clang-8a66bf78becf05a24e8251379f3843d1fceb627f.tar.bz2 clang-8a66bf78becf05a24e8251379f3843d1fceb627f.tar.xz | |
Refactor constant expression evaluation to associate the complete object of a
materialized temporary with the corresponding MaterializeTemporaryExpr. This is
groundwork for providing C++11's guaranteed static initialization for global
references bound to lifetime-extended temporaries (if the initialization is a
constant expression).
In passing, fix a couple of bugs where some evaluation failures didn't trigger
diagnostics, and a rejects-valid where potential constant expression testing
would assume that it knew the dynamic type of *this and would reject programs
which relied on it being some derived type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
