diff options
author | Dag Lem <dag@nimrod.no> | 2023-02-28 18:45:55 +0100 |
---|---|---|
committer | Dag Lem <dag@nimrod.no> | 2023-03-05 14:54:17 +0100 |
commit | 0d3423ddea1c24aea74206d64e6dc5196959ad5e (patch) | |
tree | 54d372ef0ca8357c95f4dd38dfabb9e4a586cbbc /frontends/ast/ast.h | |
parent | 79043cb849e01b494e1ab432dc52f5f99d5ff4af (diff) | |
download | yosys-0d3423ddea1c24aea74206d64e6dc5196959ad5e.tar.gz yosys-0d3423ddea1c24aea74206d64e6dc5196959ad5e.tar.bz2 yosys-0d3423ddea1c24aea74206d64e6dc5196959ad5e.zip |
Index struct/union members within corresponding wire chunks
This guards against access to bits outside of struct/union
members via dynamic indexing.
Diffstat (limited to 'frontends/ast/ast.h')
-rw-r--r-- | frontends/ast/ast.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/frontends/ast/ast.h b/frontends/ast/ast.h index 142ec0801..25a600f00 100644 --- a/frontends/ast/ast.h +++ b/frontends/ast/ast.h @@ -380,6 +380,7 @@ namespace AST // struct helper exposed from simplify for genrtlil AstNode *make_struct_member_range(AstNode *node, AstNode *member_node); + AstNode *get_struct_member(const AstNode *node); // generate standard $paramod... derived module name; parameters should be // in the order they are declared in the instantiated module |