diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-08 09:03:01 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-07-13 16:34:39 +0200 |
| commit | d8beb3b1e0e0263c2ff0b61e9a96d4ced2bc5e3e (patch) | |
| tree | 8a62353cbf52ea59d8ceb1f0f5b27bc6ac8638a6 /linearize.c | |
| parent | 96733d7cbd491de2da60db141c8c97d0b0d1e073 (diff) | |
| download | sparse-dev-d8beb3b1e0e0263c2ff0b61e9a96d4ced2bc5e3e.tar.gz | |
remove unused struct access_data::pos
The field 'struct position pos' present in struct access_data
is initialized at 2 places but is never used.
Remove this unneeded field.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'linearize.c')
| -rw-r--r-- | linearize.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/linearize.c b/linearize.c index 1173b5b6..8f5ecdfb 100644 --- a/linearize.c +++ b/linearize.c @@ -881,7 +881,6 @@ struct access_data { struct symbol *type; // ctype pseudo_t address; // pseudo containing address .. unsigned int offset; // byte offset - struct position pos; }; static int linearize_simple_address(struct entrypoint *ep, @@ -926,7 +925,6 @@ static int linearize_address_gen(struct entrypoint *ep, if (!ctype) return 0; - ad->pos = expr->pos; ad->type = ctype; if (expr->type == EXPR_PREOP && expr->op == '*') return linearize_simple_address(ep, expr->unop, ad); @@ -1851,8 +1849,6 @@ static pseudo_t linearize_one_symbol(struct entrypoint *ep, struct symbol *sym) // only the existing fields need to be initialized. // FIXME: this init the whole aggregate even if // all fields arelater explicitely initialized. - struct expression *expr = sym->initializer; - ad.pos = expr->pos; ad.type = sym; ad.address = symbol_pseudo(ep, sym); linearize_store_gen(ep, value_pseudo(0), &ad); |
