<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 26, 2014 at 10:21 AM, Daniel Marjamäki <span dir="ltr"><<a href="mailto:Daniel.Marjamaki@evidente.se" target="_blank">Daniel.Marjamaki@evidente.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello!<br>
<div class=""><br>
> I'm very surprised to see this being implemented in Analysis/CFG.cpp; this<br>
> belongs in Sema/SemaChecking.cpp. It makes no sense to me to couple this<br>
> check to building a CFG.<br>
<br>
</div>It is written in CFG since it makes the control flow analysis better if it knows that a condition is always true/false.<br></blockquote><div><br></div><div>That is putting the cart before the horse. I agree it should be *used* by the CFG builder, but it doesn't belong there.</div>
</div></div></div>