A little bit of an arcanist mix-up there. All is well now. I've added a very rudimentary testcase. It makes no attempt at ensuring that the tailcalls are lowered correctly. I think I'll have another look at this in the morning and try to add some more thorough checks. http://reviews.llvm.org/D6445