summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTycho Andersen <tycho@tycho.ws>2018-12-20 12:59:28 -0700
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-12-21 10:25:53 +0100
commit514bd49b9378df256fa38acc394ba3c4acb29f39 (patch)
treece86f28c8f36402bdd30f3f7baa3c4a8727002d5
parentaa654d8ef3344f0f0b7ab2998b8d915dc5fcb8cf (diff)
downloadsparse-514bd49b9378df256fa38acc394ba3c4acb29f39.tar.gz
expression.h: update comment to include other cast types
This part of the union is used with other cast types as well, and also by EXPR_{SIZEOF,PTRSIZEOF,ALIGNOF}, so let's include those in the comment. Signed-off-by: Tycho Andersen <tycho@tycho.ws> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--expression.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/expression.h b/expression.h
index ba4157fd..ed6f4d65 100644
--- a/expression.h
+++ b/expression.h
@@ -187,7 +187,8 @@ struct expression {
struct expression *base;
unsigned r_bitpos, r_nrbits;
};
- // EXPR_CAST and EXPR_SIZEOF
+ // EXPR_CAST, EXPR_FORCE_CAST, EXPR_IMPLIED_CAST,
+ // EXPR_SIZEOF, EXPR_ALIGNOF and EXPR_PTRSIZEOF
struct /* cast_arg */ {
struct symbol *cast_type;
struct expression *cast_expression;