Skip to content
Commit 77711979 authored by Chandler Carruth's avatar Chandler Carruth
Browse files

[UB] Don't allocate space for contained types and then try to copy the

contained types into the space when we have no contained types. This
fixes the UB stemming from a call to memcpy with a null pointer. This
also reduces the calls to allocate because this actually happens in
a notable client - Clang.

Found by UBSan.

llvm-svn: 243944
parent 3874ee68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment