| Index: mojo/public/tools/bindings/pylib/mojom/generate/pack.py
|
| diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/pack.py b/mojo/public/tools/bindings/pylib/mojom/generate/pack.py
|
| index 019fe48286edbae8090d97ae13da9fe43437f679..2b2a449cff51c7a8f854f34ca44f43296f3075a3 100644
|
| --- a/mojo/public/tools/bindings/pylib/mojom/generate/pack.py
|
| +++ b/mojo/public/tools/bindings/pylib/mojom/generate/pack.py
|
| @@ -51,6 +51,7 @@ class PackedField(object):
|
| self.size = self.GetSizeForKind(field.kind)
|
| self.offset = None
|
| self.bit = None
|
| + self.in_hole = False
|
|
|
|
|
| # Returns the pad necessary to reserve space for alignment of |size|.
|
| @@ -106,6 +107,7 @@ class PackedStruct(object):
|
| # Found hole.
|
| src_field.offset = offset
|
| src_field.bit = bit
|
| + src_field.in_hole = True
|
| dst_fields.insert(i, src_field)
|
| break
|
| last_field = next_field
|
|
|