[cfe-commits] r155923 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp
Ted Kremenek
kremenek at apple.com
Wed May 2 14:09:59 PDT 2012
On May 1, 2012, at 11:16 AM, David Blaikie <dblaikie at gmail.com> wrote:
> Would it be practical for Clang to have a warning that caught this (at
> least incrementally) - the assignment inside the conditional is dead -
> nothing after it reads CurFile, so it would be nice if we warned. (&
> then the user would probably be able to see that the rest of this was
> silly too)
It's definitely possible. It's a simple flow-sensitive analysis (basically live variables analysis), but it would need to be specially optimized to make it acceptable on the performance front for the frontend.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120502/e7b03264/attachment.html>
More information about the cfe-commits
mailing list