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

    <tr>
        <th>Summary</th>
        <td>
            clang/lib/CodeGen/CGValue.h: 8 * Function parameter should be passed by const reference
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:codegen,
            code-quality
      </td>
    </tr>

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

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

<pre>
    Static analyser cppcheck says:

trunk/clang/lib/CodeGen/CGValue.h:246:59: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:271:71: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:339:35: performance: Function parameter 'Info' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:441:66: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:452:46: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:462:49: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:478:45: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]
trunk/clang/lib/CodeGen/CGValue.h:498:46: performance: Function parameter 'TBAAInfo' should be passed by const reference. [passedByValue]

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMlb2O3CAQgJ9m3KC17AH8U7jw3sqn1InSYxj_5FjjAD7Jbx_ZlyhNilWKZJsBBon5-BCgQpjHhagBeQV5S9QWJ-cbo3uei6R3Zm8-RxVnzdSi7B7IM72ueiL9xoLaA_AWshtkP2P02_IG2GmrlhGws3MP2L04Q6-0HL3Xr8pulE7AWxQF8FbWwFu2kh-cv6tF0zHstkXH2S1sVV7dKZJngOWXa9t-WgYHWLIwuc0a1hNbVQhkWL8z7ZYQmaeBPC2aUgby-jF73c-yIG9_gVnmwNszPDMm54dILh_G_PeIQhwSi-LJTQqJR3x6zOLEfPbrI8rqdPrsmHX1vw49MQ03Na9VQk1e5gXmBSJPpoYPRa1KVWdDn9fFYMjkleq1qDTmSEomc4MZikxilgvBBU8rWeq6zDLkRlVZXYDI6K5mm1r7fk-dH5M5hI2aGktZJVb1ZMP58iN-SOKtdobGQw8Cvhx5Z-jyfVN2jvuRlLfEN8dyl34bA4jMziGG3wXiHC01jyhnFQP8o94HfCabt80U43r-QNgBduMcp61Ptbsfhe37r-ayeveNdATszt0HwO4U8CMAAP__uBVDeQ">