Fix compile multi capture (#2678)

* fix compile when compiling multiple lambdas with the same capture

* add test
This commit is contained in:
Awni Hannun
2025-11-03 06:33:43 -08:00
committed by GitHub
parent 78678de0cd
commit 93d76b0f30
5 changed files with 139 additions and 41 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>&) {