Fix crash on call to __builtin_memcpy with a null pointer to an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2018 22:47:33 +0000 (22:47 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 13 Sep 2018 22:47:33 +0000 (22:47 +0000)
commit128719c4fe7c3bc1f4beccb82a8636c375033f5a
tree96f1e1cb7261af36a66b840f613882def8912dfe
parent11ca38f4212646e0998ecc10db227df8ce1e6348
Fix crash on call to __builtin_memcpy with a null pointer to an
incomplete type.

Also improve the diagnostics for similar situations.

llvm-svn: 342192
clang/include/clang/Basic/DiagnosticASTKinds.td
clang/lib/AST/APValue.cpp
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp
clang/test/SemaCXX/constexpr-string.cpp