Skip to content

Commit

Permalink
cg: Fix lambda formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jezurko committed Sep 10, 2024
1 parent 8e722c7 commit 881fcbd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/vast/CodeGen/DefaultStmtVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,7 @@ namespace vast::cg
}

operation default_stmt_visitor::VisitGenericSelectionExpr(const clang::GenericSelectionExpr *expr) {
auto mk_assoc = [&](const clang::GenericSelectionExpr::ConstAssociation &assoc
) -> operation {
auto mk_assoc = [&] (const clang::GenericSelectionExpr::ConstAssociation &assoc) -> operation {
auto assoc_type = assoc.getType();
auto assoc_expr = assoc.getAssociationExpr();
auto type = assoc_type.isNull() ? mlir::Type() : self.visit(assoc_type);
Expand All @@ -875,7 +874,7 @@ namespace vast::cg
.bind_if_valid(type)
.freeze();
};
auto mk_body = [&](auto &state, auto loc) {
auto mk_body = [&] (auto &state, auto loc) {
for (const auto &assoc : expr->associations()) {
mk_assoc(assoc);
}
Expand Down

0 comments on commit 881fcbd

Please sign in to comment.