Don't memcpy from an empty ArrayRef; the base pointer could be null, and
authorRichard Smith <richard@metafoo.co.uk>
Tue, 15 Dec 2020 22:29:22 +0000 (14:29 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Tue, 15 Dec 2020 22:37:52 +0000 (14:37 -0800)
commitc4736b91f87e9163edcdef78891398f32390ffc2
treee352190edf9c94ed95f94751bca2a91a16bcebf2
parent60eba8161bd314eaf02952deaa023c334fcca080
Don't memcpy from an empty ArrayRef; the base pointer could be null, and
the C rules say memcpy can't accept a null pointer.

This should fix a test failure with the ubsan buildbots.
clang/lib/AST/APValue.cpp