summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-22 22:59:35 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-22 22:59:35 +0000
commitb9a9d7163f984123875a8c6276a1567fe79bd29f (patch)
tree478802532cc5ab9572df69725f99e4908d914c25 /lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
parent8e1b9a17a692d428eeb16c0189ccbbaa741b366d (diff)
downloadbcm5719-llvm-b9a9d7163f984123875a8c6276a1567fe79bd29f.tar.gz
bcm5719-llvm-b9a9d7163f984123875a8c6276a1567fe79bd29f.zip
Avoid memcpy from nullptr. NFC.
This was caught by the UBSan bot. When the atom has no size, we would issue a memcpy with size0 and a nullptr for the source. Also, this code should never have references inside an empty atom so add an assert for that while we're here. llvm-svn: 264115
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud