rengolin added a comment. I agree with Peter analysis and accept Saleem's solution as a compromise. However, if this is indeed the case, it would be good to have that idiom fixed in whatever implementation still uses it. https://reviews.llvm.org/D37788