Skip to content

Commit

Permalink
conv:abi: Simplify condition of hl::ReturnOp legality.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkorenc committed Feb 2, 2024
1 parent e3c2d96 commit 584c876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vast/Conversion/ABI/EmitABI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ namespace vast
auto is_return_legal = [&](hl::ReturnOp op)
{
auto func = op->getParentOfType< abi::FuncOp >();
if (!func || func.getName() == "main")
if (!func)
return true;

for (auto val : op.getResult())
Expand Down

0 comments on commit 584c876

Please sign in to comment.