Skip to content

Commit

Permalink
test structured bindings
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 725127187
  • Loading branch information
tomnatan30 authored and copybara-github committed Feb 10, 2025
1 parent 2cef0d9 commit dafe807
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void saveShardingOriginsOnModule(
builder.getDictionaryAttr(entries));
}
TypeSwitch<Operation*, void>(owningOp)
.Case<func::FuncOp>([&, value = value](func::FuncOp funcOp) {
.Case<func::FuncOp>([&](func::FuncOp funcOp) {
funcOp.setArgAttr(cast<BlockArgument>(value).getArgNumber(),
kShardingOriginsAttr,
builder.getDictionaryAttr(entries));
Expand Down

0 comments on commit dafe807

Please sign in to comment.