samsonov added a comment. *sigh* looks like anyone who splits basic blocks might stumble to this `localescape` problem. Probably it's worth to put this logic somewhere under lib/Transforms/Utils/BasicBlockUtils.cpp? http://reviews.llvm.org/D11961