Skip to content

[Chore] Utilize Type.h types in CastExpr-tpl.cpp #492

@ZacBlanco

Description

@ZacBlanco

Chore Type

Code Refactoring / Cleanup

Task Description

CastExpr-tpl.cpp defines its own set of types in a enum called PrimitiveKind which is already covered by Type.h there is a lot of duplicated code here that could be just rolled into Type.h. We should refactor CastExpr-tpl.cpp to use the Type.h types instead.

Motivation / Benefit

Less duplicated code, easier to add new types.

Related Files (Optional)

bolt/expression/CastExpr-tpl.cpp, bolt/type/Type.h

Implementation Plan (Optional)

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions