<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/138145>138145</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Excessive repoting when after pull request https://github.com/llvm/llvm-project/pull/136855
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
earnol
</td>
</tr>
</table>
<pre>
I have noticed excessive reporting with constant NULL pointer for the new C++ compatibly warnings implemented in https://github.com/llvm/llvm-project/commit/15321d2c9e686b382262339fa17c5445b1b2609f.
Please see following code:
```
__attribute__((address_space(0))) char *b;
__attribute__((address_space(21))) char *c;
int main(int argc, char *argv[])
{
c = (__attribute__((address_space(21))) void*)0x25;
b = (__attribute__((address_space(0))) void*)0;
return (c > 0) & (b != 0);
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUk03PpDYMxz-NuVgdBfPywIEDs88-UqVV1UvPoyQYSBUSmoSZ3W9fhdm-qT10JEtYwP9nW_ZfxmgWxzxAc4XmvZBHWn0YWAbnbaH89G34EVd5Z3Q-Gc0T8lfNMZo7Y-Ddh2Tcgg-TVtTexSRdwp9--fIFd29c4oCzD5hWRscP_AR0Bbqi9tsuk1H2Gz5kcMYtEc22W97YJZ7QOFxT2iNUI9AH0Mdi0nqoi_Yb0Ie19z8eP-zB_8o6AX1ov20mJ2VTUTmR7rntWlV1RC1VVT_L8k03dd2oUlEr-vkCYgQx_mxZRsbIjLO31j_yPNpPnIuLEVrxPcR4u8mUglFH4tsNqAPq5DQFjvEWd6kZqBNA_TNQrzIg0Kiguv4_MZX_Vuun2riEmzQOqMupDIsG-vTnXzIs9-cCs1yM8JZFiIgaoXpHoO7F-ndvJqARqBdfqXk2kXnqBZ74TxxU1wz6zgucjuAyMHf6GbMGgdr8RiFQmcudoLMFeHv_-1KKaaimvuplwUP5VrdlSU0vinWoiMXctqT6XjW96no1a9XN1UxCsOS6MAMJakQjyrIp20pc-l50sxLd3MlJ11pDLXiTxl7ynV18WAoT48FDWXVl3RRWKrbxdA1Rvu3zKxBlE4XhPE51LBFqYU1M8S9MMsny8PkfLnqaaGWHcs6m2Q9rMfBvB8f0uhWyOhuharumKY5gh5cR5zTxhJzj3gf6PQAA__9_BUS4">