Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe committed Feb 15, 2024
1 parent 29c7522 commit 21eb232
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macro/src/dialect/operation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ impl<'a> Operation<'a> {
.dag_value(name)?
.args()
.map(|(name, argument)| {
let definition =
Record::try_from(argument).map_err(|error| error.set_location(definition))?;

Ok((
name,
if definition.subclass_of("OpVariable") {
definition.def_value("constraint")?
} else {
Record::try_from(argument)
.map_err(|error| error.set_location(definition))?
definition
},
))
})
Expand Down

0 comments on commit 21eb232

Please sign in to comment.