tstellar added a comment. What about this patch: it's much more simple, though maybe I missed something: https://reviews.llvm.org/D68071 Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68456/new/ https://reviews.llvm.org/D68456