Skip to content
Commit b9a9d716 authored by Pete Cooper's avatar Pete Cooper
Browse files

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
parent 8e1b9a17
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment