<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/92762>92762</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm/tools/llvm-profdata/llvm-profdata.cpp: 4 * Function parameter should be passed by const reference
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            code-quality,
            PGO
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dcb314
      </td>
    </tr>
</table>

<pre>
    Static analyser cppcheck says:

trunk/llvm/tools/llvm-profdata/llvm-profdata.cpp:446:45: performance: Function parameter 'Whence' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-profdata/llvm-profdata.cpp:447:30: performance: Function parameter 'Hint' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-profdata/llvm-profdata.cpp:464:54: performance: Function parameter 'Whence' should be passed by const reference. [passedByValue]
trunk/llvm/tools/llvm-profdata/llvm-profdata.cpp:465:39: performance: Function parameter 'Hint' should be passed by const reference. [passedByValue]

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUlEGL2z4QxT_N-CLWyCPJ3hx8SP7B_95aKLTnsTSJ1VUsV5IL_vbF6ZaF0sNSSksvgx4jpKcfT0M5--vM3IM5gTlXtJYppt7ZUTW6GqPb-veFireCZgpb5iTsstiJ7ZPItGVQR5BnkM-1pHV-AhxC-HIDHEqMIT_LhyXFi6NCP-raLguoo9btXg2oo1g4XWK60Wx5l8M62-LjLBZKdOPCSQB2Hyfe-9iJPMU1ODGyWChndmLchI1zLiLxhdO-rRZgTt-6p-0DhZXBnH-D5w7UUclXe37j5_J3Hbca1NHof4pyu4dCHf4w5cr1yh3UgSrum65psenko66m_qJUY0bTdaptGtKGO9twK21zaZ3rHFa-R4laGpSNNo9S19IROYVkjCPUzQha8o18qPfn1jFdK5_zyv0BuxarQCOHfP-RiDY6fvi8UvBlA0TA_wDx3f9v97U5V6m_ExvXawYtg88lvxxafAnc_wJxoQXgT-m-Amm1ptBPpSz34YAD4HD1ZVrH2sbbSwK-3_uJbQEc7gB2f3cGXwMAAP__h4eFeg">