Fix bug where a trivial constexpr copy/move operation couldn't copy from an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Nov 2014 21:27:17 +0000 (21:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Nov 2014 21:27:17 +0000 (21:27 +0000)
commitbe6dd818fbf1305c895038904396d20761d3f98c
tree942524d82ae6505ce58f494d10b0bb2fe87f69e2
parent06839a536f39170f2ff6793ccbfa6ebb3468efe5
Fix bug where a trivial constexpr copy/move operation couldn't copy from an
empty non-constexpr object. Such a copy doesn't break any of the constexpr
rules.

llvm-svn: 222387
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp
clang/test/SemaCXX/constant-expression-cxx1y.cpp