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)
commit5e1b31bf5588cd9ea0b16e94fcc1d908e40027e2
treeca52460dfcc0b6cf196ca8e62277067b5063f4fe
parentc560bf638b74eb48347a7b945b90aa89ffcc1620
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172081 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Support/YAMLIOTest.cpp