Skip to content

Commit

Permalink
Work arround flawed trampoline codegen for lambdas taking index by va…
Browse files Browse the repository at this point in the history
…lue.
  • Loading branch information
AlexVlx committed Sep 13, 2019
1 parent 6b2cbc6 commit 279d4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/HC/ubsan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

void fill(hc::array_view<int,1>& input, int x) {

hc::parallel_for_each(input.get_extent(), [=](hc::index<1> idx) [[hc]] {
hc::parallel_for_each(input.get_extent(), [=](const hc::index<1>& idx) [[hc]] {
input[idx[0]] = x;
}).wait();

Expand Down

0 comments on commit 279d4e3

Please sign in to comment.