Skip to content

Commit

Permalink
XX
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
  • Loading branch information
mballance committed Aug 23, 2024
1 parent b2dd6c1 commit 5db336e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/TaskBuildExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,9 @@ void TaskBuildExpr::visitExprSignedNumber(ast::IExprSignedNumber *i) {

void TaskBuildExpr::visitExprUnsignedNumber(ast::IExprUnsignedNumber *i) {
DEBUG_ENTER("visitExprUnsignedNumber");
m_expr = m_ctxt->ctxt()->mkTypeExprVal(
m_ctxt->ctxt()->mkValRefInt(i->getValue(), false, i->getWidth()));
vsc::dm::ValRefInt val_i(m_ctxt->ctxt()->mkValRefInt(i->getValue(), false, i->getWidth()));
DEBUG("val: %lld", val_i.get_val_s());
m_expr = m_ctxt->ctxt()->mkTypeExprVal(val_i);
DEBUG_LEAVE("visitExprUnsignedNumber");
}

Expand Down
7 changes: 6 additions & 1 deletion src/TaskBuildTypeExecStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,16 @@ void TaskBuildTypeExecStmt::visitProceduralStmtReturn(ast::IProceduralStmtReturn
vsc::dm::ITypeExpr *expr = 0;
if (i->getExpr()) {
expr = TaskBuildExpr(m_ctxt).build(i->getExpr());
vsc::dm::ITypeExprVal *ev = dynamic_cast<vsc::dm::ITypeExprVal *>(expr);
DEBUG("expr: %p", expr);
DEBUG(" flags: 0x%08x ; vp: 0x%08llx",
ev->val().flags(),
ev->val().vp());
}

m_stmt = m_ctxt->ctxt()->mkTypeProcStmtReturn(expr);

DEBUG_LEAVE("visitProceduralStmtReturn");
DEBUG_LEAVE("visitProceduralStmtReturn %p", m_stmt);
}

void TaskBuildTypeExecStmt::visitProceduralStmtRepeat(ast::IProceduralStmtRepeat *i) {
Expand Down

0 comments on commit 5db336e

Please sign in to comment.