Skip to content

false positive due to not analyzing value dependencies #9061

@llvmbot

Description

@llvmbot
Bugzilla Link 8689
Resolution INVALID
Resolved on Nov 29, 2010 17:19
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @tkremenek

Extended Description

Static analyzer for the attached file reports that:

/tmp/test.c:17:28: warning: Access to field 'a' results in a dereference of a null pointer (loaded from variable 'X')
return error ? NULL : X->a;
~ ^

But clearly when X is dereferenced it cannot be NULL.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions