fix compile when compiling multiple lambdas with the same capture

This commit is contained in:
Awni Hannun
2025-10-15 17:08:22 -07:00
parent e9eab527eb
commit c473719b23
3 changed files with 68 additions and 4 deletions

View File

@@ -194,8 +194,7 @@ auto multi_one(const std::vector<array>&) {
auto multi_two(const std::vector<array>&) {
auto a = array(1.0);
auto b = array(1.0);
auto c = divmod(a, b);
return std::vector<array>{c};
return divmod(a, b);
}
auto multi_three(const std::vector<array>&) {