Skip to content

llvm/utils/TableGen/Common/CodeGenRegisters.h:571: clumsy parameter passing ? #101408

@dcb314

Description

@dcb314

Static analyser cppcheck says:

llvm/utils/TableGen/Common/CodeGenRegisters.h:571:26: performance: Function parameter 'Name' should be passed by const reference. [passedByValue]

Source code is

RegUnitSet(std::string Name) : Name(Name) {}

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