mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 22:11:11 +00:00
qapi: Drop obsolete tag value collision assertions
Union tag values can't clash with member names in generated C anymore since commit e4ba22b, but QAPISchemaObjectTypeVariants.check() still asserts they don't. Drop it. Backports commit fff5f231d5f96e8521761efcd35a12479594059a from qemu
This commit is contained in:
parent
5899d98959
commit
85ef080183
|
@ -1057,8 +1057,7 @@ class QAPISchemaObjectTypeVariants(object):
|
|||
assert self.tag_member in seen.itervalues()
|
||||
assert isinstance(self.tag_member.type, QAPISchemaEnumType)
|
||||
for v in self.variants:
|
||||
vseen = dict(seen)
|
||||
v.check(schema, self.tag_member.type, vseen)
|
||||
v.check(schema, self.tag_member.type, {})
|
||||
|
||||
class QAPISchemaObjectTypeVariant(QAPISchemaObjectTypeMember):
|
||||
def __init__(self, name, typ):
|
||||
|
|
Loading…
Reference in a new issue