[LLVMbugs] [Bug 16400] False positive in checker: Function call argument is an uninitialized value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 1 18:18:43 PDT 2013


Jordan Rose <jordan_rose at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Jordan Rose <jordan_rose at apple.com> ---
The analyzer is conservative about global variables, even static global
variables, and assumes that any function calls it sees could change the
variable. IPA mitigates this a bit, and there are techniques we could add to
figure out that a particular function does /not/ touch a global, but in the
general case it's an unsolvable problem. I don't think we're going to be able
to fix this any time soon.

Workaround: cache the results of the check in a local variable.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130702/782746ef/attachment.html>

More information about the llvm-bugs mailing list