Skip to content

Commit

Permalink
fixed possibly dangling reference to a temporary for gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
KateBlueSky committed Mar 3, 2025
1 parent 2238fad commit 62ab9e0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ struct vertex_ranking_ops_dispatcher {
vertex_ranking_result<task_t> operator()(const Policy &policy,
const Descriptor &descriptor,
vertex_ranking_input<Graph, task_t> &input) const {
const auto &t = dal::preview::detail::csr_topology_builder<Graph>()(input.get_graph());

Check notice on line 35 in cpp/oneapi/dal/algo/triangle_counting/detail/vertex_ranking_ops.hpp

View check run for this annotation

codefactor.io / CodeFactor

cpp/oneapi/dal/algo/triangle_counting/detail/vertex_ranking_ops.hpp#L35

Redundant blank line at the start of a code block should be deleted. (whitespace/blank_line)

auto topology_builder = dal::preview::detail::csr_topology_builder<Graph>();

static auto impl = get_backend<Policy, Descriptor>(descriptor, t);
const auto &t = topology_builder(input.get_graph());

if (!impl) {
throw std::runtime_error("Failed to get backend implementation");
}
static auto impl = get_backend<Policy, Descriptor>(descriptor, t);

return (*impl)(policy, descriptor, t);
}
Expand Down

0 comments on commit 62ab9e0

Please sign in to comment.