https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118821

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|false-positive              |

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Adding
[[gnu::assume(dep!=0)]];

Or
if (dep == 0)
  __builtin_unreachable();

After the call to erts_prtsd_get .

Gets rid of the warning.

This is not a false positive rather jump threading and isolation of the null
pointer access causes the warning to show up.

Reply via email to