aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Parser.vy
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Parser.vy')
-rw-r--r--cparser/Parser.vy6
1 files changed, 2 insertions, 4 deletions
diff --git a/cparser/Parser.vy b/cparser/Parser.vy
index 7fe686f1..b3731809 100644
--- a/cparser/Parser.vy
+++ b/cparser/Parser.vy
@@ -172,10 +172,8 @@ unary_expression:
| loc = SIZEOF LPAREN typ = type_name RPAREN
{ (TYPE_SIZEOF typ, loc) }
(* Non-standard *)
-| loc = ALIGNOF expr = unary_expression
- { (EXPR_ALIGNOF (fst expr), loc) }
| loc = ALIGNOF LPAREN typ = type_name RPAREN
- { (TYPE_ALIGNOF typ, loc) }
+ { (ALIGNOF typ, loc) }
unary_operator:
| loc = AND
@@ -546,7 +544,7 @@ attribute_specifier:
| loc = ALIGNAS LPAREN args = argument_expression_list RPAREN
{ (ALIGNAS_ATTR (rev' args) loc, loc) }
| loc = ALIGNAS LPAREN typ = type_name RPAREN
- { (ALIGNAS_ATTR [TYPE_ALIGNOF typ] loc, loc) }
+ { (ALIGNAS_ATTR [ALIGNOF typ] loc, loc) }
gcc_attribute_list:
| a = gcc_attribute