Skip to content

Commit

Permalink
Remove the hard-coded rhs-casting(s) of assignment generations
Browse files Browse the repository at this point in the history
Signed-off-by: zzmic <[email protected]>
  • Loading branch information
zzmic committed Aug 6, 2024
1 parent 3016919 commit 9585a68
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backends/p4tools/modules/smith/common/statements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@ IR::Statement *StatementGenerator::genAssignmentStatement() {
removeLval(left, bitType);
}
right = target().expressionGenerator().genExpression(bitType);
if (left->toString().find("said")) {
const auto *type = new IR::Type_Name(IR::ID("SecurityAssocId_t"));
right = new IR::Cast(type, right);
}
return new IR::AssignmentStatement(left, right);
}
case 1:
Expand Down

0 comments on commit 9585a68

Please sign in to comment.