commit | c1aeaac2015e93e1168453d4de29619c43fda669 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Mar 12 15:28:48 2010 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Mar 12 15:28:48 2010 |
tree | 062ebdcfdcca6b6f8c781ede55b5dc7d97e8f142 | |
parent | dc99ca7f7328d14d43af2fd5b8cde944c6a08054 [diff] |
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