<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylUjtv2zAQ_jXUQkSgKVuWBg1qjC7tUCRTJ4GPs8WYFgXeyYH763tSkQboWoDk8R747ruHTf7RicOXF5hzEoeT0M1INKOoeqG_8rkkb1OkMuULa7_4Yrvzx5_Nt1boVqiTUP2f9yUlks4sCBIBbigpSQuSRkNS1KonysEuBFi6eV7xq974twXp2cQI-fX1x3e4Q-RQ6ROgnBhuNHeQRr6bx4rmRnBX-T4CjZAZOKA0H6gcw5r34MvCd5Vvq9YUZqEx5c4v16fqWCw5dv8UF2hcbOnSjZUY7x_iiZvxBo5YDYgLIH8OumnqYuyqc9NqraBxqq6h8m63O1vvzq3XezbrIhoLEdemCq3twm3TQj9LFluGqncpw6fxFpDzzyEaCmla7YdT8f9EQ6eV3u20Pqpa1_umbJ0Da8-V0se6VcaLvYKbCbFccdbxFrnbIJkysjMGJPx0GsRwmQC2upghBYrQDcPfAQwD7w6fKQ1Ixl0HpkZMLeV1T3QreVrpDjkHHtIk7UOGKYYpTJdio95tvH8DONvUIQ>52886</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            __attribute__((no_stack_protector)) is overridden by inlining
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            llvm:core,
            miscompilation
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          duk-37
      </td>
    </tr>
</table>

<pre>
    [Repro](https://godbolt.org/z/s91d7Y8K9)

Root cause seems to be that `Attributes.cpp::adjustCallerSSPLevel` does not have a way to check whether this attribute was added.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdkUtv2zAMxz-NfBFqOHIi2wcf3Aa7bIehPe1k6MHEahTLEOkU2acfnaErMIB68IEf-Zds8vdeHJ5fYclJHI5CtRPRgqIehPrGdk7epkhlymf2fvPCbuebX-33TqhOVEdRDX_315RIOrMiSAS4oqQkLUiaDEmhq4EoB7sSYOmWZePXg_HvK9KLiRHy29vPH3CDyKXSJ0A5M24yN5BGfpj7RnMTuIv8mIAmyAwOKM0nlWvY8x58Wfi-9l3dmYICRejH8V_VOLJAtjmNSMZdRlZN4CjlTYzqJCPTDXIOTJqlvcswxzCH-VysOfb_PU2gabWlS1d2Yrx9Hk8MfWcouwFxBeTLQbWtLqZead3V1mlw2lbNXnul21O3O_G0xkFbF9FYiLh9iVDKrvzoSqgXycejQz24lOEreA3I_ZcQDYU0b_HDsQi9qtRup1RTaaX3bdk5B9ae6ko1uquMF_sKribEcmNuX1vk_jE5N0ROxoCEX0mDGM4zwGMq5puVppR7v16e6qZ4aOwfAv8Aalu-ig">