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

    <tr>
        <th>Summary</th>
        <td>
            [TBAA] Invalid TBAA added to libcalls
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    See https://godbolt.org/z/nc5E4js4Y

```
  %call = tail call double @cos(double noundef %x) #2, !dbg !18, !tbaa !19
  !19 = !{!20, !20, i64 0}
  !20 = !{!"int", !21, i64 0}
```

This should have double not int as the tbaa on it, no?

possibly related: https://github.com/llvm/llvm-project/pull/100302

@vfdff  @arsenm 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUsFu2zAM_Rr6QiyQKDuWDz6kywzsvF52lCw5VqFYgSln675-sJusbW4DDMmP0CMfyWeYw2nyvoXqCapjYZY8prn9xefEngub3Gv7w3scc74wqANQB9SdkrMp5l2aT0DdH6Bu6qtv5QuXP0EcQRxu517cvg0iAlW9iRFBHTGbEHFDLi02eoRS9ImB9A1PaZmcH1bSb6AGgRQBfUUg6expvaS-4WyN2QLNeyUpm60OkIT6CUiSuL1--wn7EgXUxw8MEp8ZQBSmDHQvu0YeiQ89vp3PY2DkMS3R4WiuHv-1lDFMGQ1jHj1ustOEIa95pwSq-5jlkpiDja84-2iyd6AOj3sIeVzsrk9noC7G6_36cpnTi-8zUHdZYgTqpBBK0KfllOI6uGHAdfBmZj-dsXCtco1qTOFbWRNpLamqi7EtnTVmKPVQV0NJTjsr-6qRSu8brcj0RWhJUCm0qKQWtap2uqk17b0gbZzQqoFS-LMJcbfqW41TBObFt1KQoKaIxvrIdxfO7daFXU4MpYiBM7_zcshx8-vz0-EA1RG_T1cTg8MVo3HOO8wJY7Cru7hY5tj-99g2cbwNbtN3belvAAAA__8uqecy">