Commit bc02fa9e authored by Hrvoje Ribicic's avatar Hrvoje Ribicic
Browse files

Fix opcode result tuple validation



The tuple validation for opcode results failed to assert if a result
was a tuple before attempting to check its length and types. This
patch adds the missing "Is it a tuple?" check.
Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 6b47261a
...@@ -433,7 +433,7 @@ def TTupleOf(*val_types): ...@@ -433,7 +433,7 @@ def TTupleOf(*val_types):
""" """
desc = WithDesc("Tuple of %s" % (Parens(val_types), )) desc = WithDesc("Tuple of %s" % (Parens(val_types), ))
return desc(TAnd(TIsLength(len(val_types)), TItems(val_types))) return desc(TAnd(TTuple, TIsLength(len(val_types)), TItems(val_types)))
def TSetOf(val_type): def TSetOf(val_type):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment