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

    <tr>
        <th>Summary</th>
        <td>
            llvm/include/llvm/IR/ModuleSummaryIndex.h: 3 * Function parameter 'Flags' should be passed by const reference
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            code-quality,
            llvm:ir
      </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/IR/ModuleSummaryIndex.h:1153:28: performance: Function parameter 'Flags' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/IR/ModuleSummaryIndex.h:628:24: performance: Function parameter 'Flags' should be passed by const reference. [passedByValue]
trunk/llvm/include/llvm/IR/ModuleSummaryIndex.h:900:27: performance: Function parameter 'Flags' should be passed by const reference. [passedByValue]

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUkz2L3DAQhn_NuBFnpJG9XhUudrMYrkiTg_SyNLtWTrYcfYT43wc7ge2TEEgj0CsQz_swo1Nyj4Woh_YK7a3SJU8h9taMUjTVGOzWv2WdnWF60X5LFJlZVzOReWdJbwnkBfgN-K8zx7K8Aw7ef5sBB7cYXyw9g9dPgMPHYIuntzLPOm6vi6Xv9QTyIkQrQV7wDPLCVor3EGe9GNqvQ1lMdmFhq456pkyRAXaD148E2LE0heItG4mtOiWybNyYCUvKLNKdIi2Gagbt9efrdfusfSFob38OfTpwsfmfmBXnO3P3r5kr20urpNIV9aITJ9lxcebV1LfdSamRtBKWK25MJ1tjlGhO97NGbHTleuTY8BaRK1QNrzvE011SK4TA1kgBDadZO1_v9esQH5VLqVCvJOeq8nokn44RRzTB0svXor3LGyACfgDEw5q8uLgn7a2K_Z68jOWRoOHepZyeX2eXPfW_Y55JBvg3LFcl-n7KeT0WEAfA4eHyVMbahPnJcpRYY_hCJu-su5MEOBxafgQAAP__qzhL-w">