Skip to content

Commit 0e848d4

Browse files
committed
sdc: Allow multiple entities in from/to
1 parent e7f8ca5 commit 0e848d4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

common/kernel/sdc.cc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,9 @@ struct SDCParser
477477
log_error("expecting SdcValue argument to -from (line %d)\n", lineno);
478478
}
479479

480-
if (val.list.size() != 1) {
481-
log_error("Expected a single SdcEntity as argument to -to/-from (line %d)\n", lineno);
480+
for (const auto &ety : val.list) {
481+
sdc_into_path_constraint(ety, is_from, ct);
482482
}
483-
484-
auto &ety = val.list.at(0);
485-
486-
sdc_into_path_constraint(ety, is_from, ct);
487483
}
488484
}
489485

0 commit comments

Comments
 (0)