<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 15, 2014 at 9:57 AM, Sanjay Patel <span dir="ltr"><<a href="mailto:spatel@rotateright.com" target="_blank">spatel@rotateright.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for the hint! I wasn't sure what to do there because this seemed a bit weird:<br>   if (const OverflowingBinaryOperator *OBO = dyn_cast<OverflowingBinaryOperator>(V)) {<br>
<br></div>We're not specifying 'const' in the dyn_cast itself in the first two instances...although in the last case we did:<br>   else if (const FPMathOperator *FPMO = dyn_cast<const FPMathOperator>(V)) {<br><br></div>Should I add the 2nd 'const' inside the dyn_cast< > for all cases as well as on the 'auto'?</div></blockquote><div><br></div><div>The LLVM casting machinery is appropriately overloaded so that you don't have to write the const yourself. We generally rely on that instead of writing it out.</div></div></div></div>