commit | 41bf4f38348561a0f12c10d34f1673cd19a6eb04 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Mon Oct 24 21:07:08 2011 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Mon Oct 24 21:07:08 2011 +0000 |
tree | a25c2f2f62a67616820b5b3bed53a4cf8af898c8 | |
parent | 9875c6020f6f2832e48c0d41910ba9fc99181670 [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