[all-commits] [llvm/llvm-project] c4736b: Don't memcpy from an empty ArrayRef; the base poin...
Richard Smith via All-commits
all-commits at lists.llvm.org
Tue Dec 15 14:38:17 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4736b91f87e9163edcdef78891398f32390ffc2
https://github.com/llvm/llvm-project/commit/c4736b91f87e9163edcdef78891398f32390ffc2
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2020-12-15 (Tue, 15 Dec 2020)
Changed paths:
M clang/lib/AST/APValue.cpp
Log Message:
-----------
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.
More information about the All-commits
mailing list