[cfe-dev] -Wunreachable-code and templates

Ted Kremenek kremenek at apple.com
Wed Nov 30 23:44:10 PST 2011


On Nov 30, 2011, at 6:33 PM, David Blaikie wrote:

> Slightly related/minor tidyup - should the isType/ValueDependent
> checks in tryEvaluate/tryEvaluateBool be removed (and possibly
> replaced with assertions) as they don't seem to do anything - we
> weren't visiting dependent contexts previously nor are we now.

I'd be happy with that if we just had CFGBuilder abort up front the construction on raw (uninstantiated) templates.  This defensive code is there so that other clients of CFGBuilder (besides AnalysisBasedWarnings) don't get into trouble.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111130/c3e081d4/attachment.html>


More information about the cfe-dev mailing list