Static analyser cppcheck says: llvm/lib/ObjCopy/ELF/ELFObject.h:913:33: performance: Function parameter 'Rel' should be passed by const reference. [passedByValue] Source code is void addRelocation(Relocation Rel) { Relocations.push_back(Rel); } Suggest new code: void addRelocation( const Relocation & Rel) { Relocations.push_back(Rel); }