<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 9:51 AM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>LGTM.  </div><div><br>
</div><div><br></div><div><div>+  Type *BaseType = Ptr->getType();</div><div>+  PointerType *BasePointerType;</div><div>+  if (!(BasePointerType = dyn_cast<PointerType>(BaseType->getScalarType())))</div></div>
<div><br></div><div>I would write this as:</div><div><br></div><div><div>PointerType *BasePointerType = dyn_cast<PointerType>(BaseType->getScalarType());</div><div>if (!BasePointerType) ...</div></div><div></div>
</div></blockquote><div><br></div><div style>Thanks. r180030 - with your suggestion.</div><div style><br></div><div style>Eli</div><div style> </div></div></div></div>