Skip to content

Commit

Permalink
sdc: Allow multiple entities in from/to
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanG077 committed Sep 26, 2024
1 parent e7f8ca5 commit 0e848d4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions common/kernel/sdc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -477,13 +477,9 @@ struct SDCParser
log_error("expecting SdcValue argument to -from (line %d)\n", lineno);
}

if (val.list.size() != 1) {
log_error("Expected a single SdcEntity as argument to -to/-from (line %d)\n", lineno);
for (const auto &ety : val.list) {
sdc_into_path_constraint(ety, is_from, ct);
}

auto &ety = val.list.at(0);

sdc_into_path_constraint(ety, is_from, ct);
}
}

Expand Down

0 comments on commit 0e848d4

Please sign in to comment.