During batch creation of instances the 'reason' field in opcodes is set
to None (but the field is present). This caused problems when adding a
reasons to the reason trail.
Setting the default value for the 'reason' field to the empty list fixes
this issue.
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
" for details"),
(COMMENT_ATTR, None, ht.TMaybeString,
"Comment describing the purpose of the opcode"),
- (constants.OPCODE_REASON, None, ht.TMaybeList,
+ (constants.OPCODE_REASON, ht.EmptyList, ht.TMaybeList,
"The reason trail, describing why the OpCode is executed"),
]
OP_RESULT = None