Skip to content

Commit

Permalink
VhdlExprParser::visitProcedure_call fic to call conversion #140
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic30 committed Oct 7, 2020
1 parent 83a6426 commit 9389c78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vhdlConvertor/exprParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ unique_ptr<iHdlExprItem> VhdlExprParser::visitProcedure_call(
auto c = dynamic_cast<HdlOp*>(fnCall.get());

if (c == nullptr || c->op != HdlOpType::CALL) {
if (c && c->op == HdlOpType::INDEX) {
c->op = HdlOpType::CALL;
return fnCall;
}
vector<unique_ptr<iHdlExprItem>> args;
return HdlOp::call(ctx, move(fnCall), args);
}
Expand Down

0 comments on commit 9389c78

Please sign in to comment.