Use memcpy in cloneArray
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 28 Apr 2017 17:24:47 +0000 (13:24 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 28 Apr 2017 18:18:40 +0000 (14:18 -0400)
commit228d4670e98e4fd998c847aac38c11ad85aa35a7
treefd74253ddadeddd98227f962ab78589bbaa3204a
parentb2c38d6b4003d3dda60d15204283da5aab15c2ec
Use memcpy in cloneArray

While looking at #13615 I noticed that there was this strange open-coded
memcpy in the definition of the cloneArray macro. I don't see why this
should be preferable to memcpy.

Test Plan: Validate, particularly focusing on array operations

Reviewers: simonmar, tibbe, austin, alexbiehl

Reviewed By: tibbe, alexbiehl

Subscribers: alexbiehl, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3504
includes/Cmm.h