DescriptionAvoid 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=41434
Patch Set 1 #
Total comments: 1
Patch Set 2 : s/NeedInstance/NeedsInstance and align buf_ #Patch Set 3 : use align(16) to support older gcc on tryserver #
Total comments: 3
Patch Set 4 : Revert alignment change so I can commit patch set 1. #
Messages
Total messages: 11 (0 generated)
|