indutny added a comment. There's a huge `FIXME` in the code that depends on @fhahn's patch: https://reviews.llvm.org/D43822 . Will remove it as soon as that patch lands. Hopefully it won't deter you from reviewing it ;) https://reviews.llvm.org/D43729