commit | 892cc7f95d7a4a80e40b5443b7f9a1c231997e6f | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Mon Oct 24 21:07:08 2011 +0000 |
committer | Stephen Hines <srhines@google.com> | Fri Nov 11 11:43:35 2011 -0800 |
tree | b910158020e5f9c6fb1f8a3e9a991f88387b3f74 | |
parent | fd40ad41764a319d488fe30d86a9cb88c953b9a9 [diff] |
Constant expression evaluation: evaluate lvalues as lvalues, and rvalues as rvalues, as C++11 constant evaluation semantics require. DeclRefs referring to references can now use the normal initialization-caching codepath, which incidentally fixes a crash in cyclic initialization of references. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142844 91177308-0d34-0410-b5e6-96231b3b80d8