Fix crash on constant-evaluation of pseudo-destruction of a pointer.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 2 Oct 2019 01:13:57 +0000 (01:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 2 Oct 2019 01:13:57 +0000 (01:13 +0000)
commit5e18f4db08dc4df3d91869cea1c39810b3e0c83b
tree2a5ee05947509aa203a06c47bad69a9fef8d8b26
parent86f864dacee0c1c65841723e84503ff1927bf28a
Fix crash on constant-evaluation of pseudo-destruction of a pointer.

We got confused and thought we might be pseudo-destroying the pointee
instead.

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