[lld] r264234 - Avoid UB when creating empty atoms. NFC.

Pete Cooper via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 10:45:10 PDT 2016


> On Mar 24, 2016, at 9:58 AM, David Blaikie <dblaikie at gmail.com> wrote:
> 
> +      if (!size)
> +        return ArrayRef<uint8_t>();
> 
> You can write this as "return None;" or "return {};" if you like.
Nice suggestion!  r264311.  Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160324/cfd3e17c/attachment.html>


More information about the llvm-commits mailing list