Thanks for reviewing it, could you please commit this? I don't have commit access. Or do you want me to change the helper function and make it return a raw pointer instead of a unique_ptr? Cheers, Rafael http://reviews.llvm.org/D5054