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) {}