<div dir="ltr">looks good - thanks!</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Mar 26, 2017 at 4:21 PM Craig Topper via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">craig.topper created this revision.<br class="gmail_msg">
<br class="gmail_msg">
During post-commit review of a previous change I made it was pointed out that const casting 'this' is technically a bad practice. This patch re-implements all of the methods in BasicBlock that do this to use the const BasicBlock version and const_cast the return value instead.<br class="gmail_msg">
<br class="gmail_msg">
I think there are still many other classes that do similar things. I may look at more in the future.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D31377" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D31377</a><br class="gmail_msg">
<br class="gmail_msg">
Files:<br class="gmail_msg">
  include/llvm/IR/BasicBlock.h<br class="gmail_msg">
  lib/IR/BasicBlock.cpp<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div>