summaryrefslogtreecommitdiffstats
path: root/include/expression.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2009-04-01 12:56:44 +0200
committerPatrick McHardy <kaber@trash.net>2009-04-01 12:56:44 +0200
commit414fa58ae9f283c35c8510fc31f28ba77bb5fdf5 (patch)
treeebfd07d818c1d32e74d6679ccf421e5a681e92a9 /include/expression.h
parent4ffa6882a5eafa50625d0e4d49cdaafe69d7877c (diff)
expressions: kill seperate sym_type datatype for symbols
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/expression.h')
-rw-r--r--include/expression.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/expression.h b/include/expression.h
index b0084c07..471033e7 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -174,7 +174,6 @@ struct expr {
union {
struct {
/* EXPR_SYMBOL */
- const struct datatype *sym_type;
const struct scope *scope;
const char *identifier;
};
@@ -292,7 +291,7 @@ static inline void symbol_expr_set_type(struct expr *expr,
const struct datatype *dtype)
{
if (expr->ops->type == EXPR_SYMBOL)
- expr->sym_type = dtype;
+ expr->dtype = dtype;
}
extern struct expr *constant_expr_alloc(const struct location *loc,