Closed
Description
Static analyser cppcheck says:
llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h:64:43: performance: Function parameter 'V' should be passed by const reference. [passedByValue]
Source code is
DWARFFormValue(dwarf::Form F, ValueType V) : Form(F), Value(V) {}
Suggest new code:
DWARFFormValue(dwarf::Form F, const ValueType & V) : Form(F), Value(V) {}