<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/92761>92761</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/include/llvm/ProfileData/SampleProfReader.h: 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/include/llvm/ProfileData/SampleProfReader.h:277:28: performance: Function parameter 'Filename' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/ProfileData/SampleProfReader.h:439:28: performance: Function parameter 'Filename' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/ProfileData/SampleProfReader.h:441:28: performance: Function parameter 'RemapFilename' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/ProfileData/SampleProfReader.h:449:28: performance: Function parameter 'RemapFilename' should be passed by const reference. [passedByValue]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUlL2OnTwQhq9maKxFMJi_guLsd8RXZrUrpR_s4eCswcQ_kbj7iJNI26TIKlskzQjG0uh5n5FNIZjbxjxA_Qj1NaMUF-cHraaqlNnk9DG8RIpGCdrIHoG9UPuuFlavItARoLpAcYXiZ40-ba-Ao7XfVsDRbMomzW-NJ-9mY_lKkQDHF1p3y2fvmUmzzxeoLti2Z-2guoid_ez8Spvi83dMm4rGbWInTytH9gKwHY3ljVYGbEVYXLJaTCx2CoG1mA6h3Bai8Dyz501xLqB-_HH6eHwmmxjq64fRy6r_l-ll-T76Z15p_8sivHMBHxwh00Ol-6qnjIeyLRssm66rsmVo50nqqiOlZt1ygb2eGl3LktTUN7LjzAxYoCxqLEpZS4n5LAvV1nXDfaFrpA5kwSsZm582cudvmQkh8dBj25SZpYltuN9jROU0P3xNZE08ABHwP0B8-v_T-V1fMz-cIx6mdAsgC2tCDG9Do4mWhz9YgZAC8CJ-5ft33GbJ22GJcb8_LjgCjjcTlzTlyq1vIPcEu3dfWMUT9FQRAMe7je8BAAD__-iJmqU">