--- linearize.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linearize.c b/linearize.c index 63c896fc7..485d8eeec 100644 --- a/linearize.c +++ b/linearize.c @@ -955,7 +955,7 @@ static int linearize_address_gen(struct entrypoint *ep, /* * Is it possible and desirable for this to be promoted to a pseudo? */ -static inline int is_simple_type(struct symbol *type) +static inline int is_promotable(struct symbol *type) { if (type->type == SYM_NODE) type = type->ctype.base_type; @@ -979,7 +979,7 @@ static inline int is_simple_type(struct symbol *type) } #define MOD_NONREG (MOD_STATIC|MOD_NONLOCAL|MOD_ADDRESSABLE|MOD_VOLATILE) -static inline struct symbol *simple_access(struct access_data *ad) +static inline struct symbol *promotable_access(struct access_data *ad) { pseudo_t addr = ad->address; struct symbol *sym; @@ -989,7 +989,7 @@ static inline struct symbol *simple_access(struct access_data *ad) sym = addr->sym; if (sym->ctype.modifiers & MOD_NONREG) return NULL; - if (!is_simple_type(sym)) + if (!is_promotable(sym)) return NULL; return sym; } @@ -1003,7 +1003,7 @@ static pseudo_t add_load(struct entrypoint *ep, struct access_data *ad) if (!bb) return VOID; - if ((var = simple_access(ad))) { + if ((var = promotable_access(ad))) { new = load_var(bb, var); return new; } @@ -1027,7 +1027,7 @@ static void add_store(struct entrypoint *ep, struct access_data *ad, pseudo_t va if (!bb) return; - if ((var = simple_access(ad))) { + if ((var = promotable_access(ad))) { store_var(bb, var, value); return; } -- 2.14.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html