Skip to content

polly/include/polly/ScheduleTreeTransform.h:52: assert in wrong place ? #91235

@dcb314

Description

@dcb314

Static analyser cppcheck says:

polly/include/polly/ScheduleTreeTransform.h:52:7: style: Statements following 'return' will never be executed. [unreachableCode]

Source code is

case isl_schedule_node_set:
  return getDerived().visitSet(Node.as<isl::schedule_node_set>(),
                               std::forward<Args>(args)...);
  assert(isl_schedule_node_n_children(Node.get()) >= 2);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions