Avoid a strict aliasing issue in LazyInstance.

The key change here is to use the return value from placement
new rather than casting buf_. Avoiding the cast avoids the
strict aliasing issue.

BUG=28749

Review URL: http://codereview.chromium.org/548011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41434 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: c1aeaac2015e93e1168453d4de29619c43fda669
2 files changed
tree: 01c6856638bb5507b362ce6721f74f75564df42c
  1. base/
  2. build/
  3. ipc/
  4. testing/