aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-04-08 23:04:44 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-05-19 05:35:01 +0200
commit0e82a031bcc1ee6deab8b97ccc68e98fb8d22d6d (patch)
tree76dc3ef6ea2059e2a2ca97501d33c2944706aa95
parentff3b6ef6bb18349e75700a23bb9176b895e34a6b (diff)
downloadsparse-dev-0e82a031bcc1ee6deab8b97ccc68e98fb8d22d6d.tar.gz
remove origval from struct access_data
In struct access_data, the field 'origval' seems to be a leftower of some previous version and is set but never really used. Change this by removing this field. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--linearize.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linearize.c b/linearize.c
index c9e4a7a9..b2220726 100644
--- a/linearize.c
+++ b/linearize.c
@@ -843,7 +843,6 @@ struct access_data {
struct symbol *result_type; // result ctype
struct symbol *source_type; // source ctype
pseudo_t address; // pseudo containing address ..
- pseudo_t origval; // pseudo for original value ..
unsigned int offset; // byte offset
struct position pos;
};
@@ -909,13 +908,8 @@ static pseudo_t add_load(struct entrypoint *ep, struct access_data *ad)
struct instruction *insn;
pseudo_t new;
- new = ad->origval;
- if (0 && new)
- return new;
-
insn = alloc_typed_instruction(OP_LOAD, ad->source_type);
new = alloc_pseudo(insn);
- ad->origval = new;
insn->target = new;
insn->offset = ad->offset;