Skip to content
Snippets Groups Projects
Commit c6e1a3ee authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

baserlib: Accept empty body in FillOpcode


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent ab85ce39
No related branches found
No related tags found
No related merge requests found
......@@ -156,10 +156,13 @@ def FillOpcode(opcls, body, static, rename=None):
@return: Opcode object
"""
CheckType(body, dict, "Body contents")
if body is None:
params = {}
else:
CheckType(body, dict, "Body contents")
# Make copy to be modified
params = body.copy()
# Make copy to be modified
params = body.copy()
if rename:
for old, new in rename.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment