Fix Alias Bug
authorDavid Greene <greened@obbligato.org>
Thu, 10 Jan 2013 18:17:54 +0000 (18:17 +0000)
committerDavid Greene <greened@obbligato.org>
Thu, 10 Jan 2013 18:17:54 +0000 (18:17 +0000)
commit4162c2d31ba23fcda2e8184b12f47590c5f16920
tree8d236c1f8e1fd7166c31c83e4b6135ce26ba2ccf
parent37c528259ae36ba14dbaeb10e3b174bd5ed993dd
Fix Alias Bug

Use memcpy to do type punning instead of a cast.  A cast or similar
operation through a union breaks strict aliasing rules.

llvm-svn: 172081
llvm/unittests/Support/YAMLIOTest.cpp