Skip to content

Commit

Permalink
Stohos: Silence shadow warning
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Glusa <[email protected]>
  • Loading branch information
cgcgcg committed Jan 29, 2025
1 parent 4c14b7e commit 722f50a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,19 @@ inline auto create_mirror(
if constexpr ( ! std::is_same_v<typename ViewTraits<T, P...>::array_layout, LayoutStride>) {
return src.layout();
} else {
LayoutStride layout;
LayoutStride layout2;

for (int idx = 0; idx <= 7; ++idx) {
layout.dimension[idx] = src.extent(idx);
layout.stride [idx] = src.stride(idx);
layout2.dimension[idx] = src.extent(idx);
layout2.stride [idx] = src.stride(idx);
}

return layout;
return layout2;
}
}();

layout.dimension[src_type::rank] = dimension_scalar(src);

const auto prop_copy = Impl::with_properties_if_unset(
arg_prop, std::string(src.label()).append("_mirror"));

Expand Down

0 comments on commit 722f50a

Please sign in to comment.