Skip to content

TACO in debug builds should emit code with array bounds checks #373

@rohany

Description

@rohany

It seems like it should be straightforward to introduce a macro like TACO_ACCESS(array, length, offset) that expands to offset >= 0 && offset < length ? array[offset] : taco_assert_fail(...). This would surely catch some bugs and make tracking down bugs in the generated code easier.

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