The actual bug was fixed in https://reviews.llvm.org/D74589 Differential Revision: https://reviews.llvm.org/D77084