Commit fa411651 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>
(cherry picked from commit c6e1a3ee

)
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 9cd534ab
......@@ -193,10 +193,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():
......
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