[c++2a] Fix assertion failure if we would walk over more than one level
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 May 2019 20:45:12 +0000 (20:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 30 May 2019 20:45:12 +0000 (20:45 +0000)
commita481b01e958b19c2eb6564ab8930eae9058967f8
tree28a023709f019a84982f199585e8cd9c590b59e3
parenta4e3b50e2651510d2d93a0f3128d4bcceb3ea3d3
[c++2a] Fix assertion failure if we would walk over more than one level
of derived-to-base conversion path when implicitly starting union
subobject lifetimes in constant evaluation.

llvm-svn: 362147
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx2a.cpp