Skip to content

Commit

Permalink
hl: Fix selected attr type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Sep 9, 2024
1 parent e54fa0a commit 2aab276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vast/Dialect/HighLevel/HighLevelOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ def HighLevel_GenericAssocExpr

def HighLevel_GenericSelectionExpr
: HighLevel_Op< "generic_expr", [NoTerminator] >
, Arguments< (ins OptionalAttr< TypeAttr >:$controlType, OptionalAttr< TypedAttrInterface >:$selected) >
, Arguments< (ins OptionalAttr< TypeAttr >:$controlType, OptionalAttr< IndexAttr >:$selected) >
, Results< (outs AnyType:$result) >
{
let summary = "C11 _Generic expression.";
Expand Down Expand Up @@ -1734,7 +1734,7 @@ def HighLevel_GenericSelectionExpr
}] >
];

let assemblyFormat = [{ attr-dict `match` `:` ($control^)? ($controlType^)? $values `->` type($result)}];
let assemblyFormat = [{ attr-dict `match` `:` ($control^)? ($controlType^)? $body `->` type($result)}];
}

#endif // VAST_DIALECT_HIGHLEVEL_IR_HIGHLEVELOPS

0 comments on commit 2aab276

Please sign in to comment.