Avoid unneeded return keywords.

This commit is contained in:
Dan Gohman
2017-08-31 12:15:33 -07:00
parent a7d629c368
commit 3c5755cfbd

View File

@@ -88,7 +88,7 @@ def emit_instp(instp, fmt, has_dfg=False):
# Deal with pure type check predicates which apply to any instruction.
if iform == instruction_context:
fmt.line('let args = inst.arguments(&dfg.value_lists);')
fmt.format('return {};', instp.rust_predicate(0))
fmt.line(instp.rust_predicate(0))
return
assert isinstance(iform, InstructionFormat)