Skip to content

Commit

Permalink
fix h_class var declaration to prevent unneeded copy
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Jun 23, 2022
1 parent 44bf1cc commit 7d3539b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/strings/regex/regexec.cu
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ std::unique_ptr<reprog_device, std::function<void(reprog_device*)>> reprog_devic
auto d_end = d_ptr + (classes_count * sizeof(reclass_device));
// place each class and append the variable length data
for (int32_t idx = 0; idx < classes_count; ++idx) {
auto h_class = h_prog.class_at(idx);
auto const& h_class = h_prog.class_at(idx);
reclass_device d_class{h_class.builtins,
static_cast<int32_t>(h_class.literals.size()),
reinterpret_cast<reclass_range*>(d_end)};
Expand Down

0 comments on commit 7d3539b

Please sign in to comment.