Is this patch OK to merge to the 4.0 branch?
PR32284 was reopened because of similar cases. If we add this we should also consider: https://reviews.llvm.org/D31625
Change looks good, though it's a bit unfortunate the test is just a "don't crash" test that doesn't actually check anything.
Merged: r300979 Nirav once D31625 is committed, can you create a separate merge request for that one?
Will do.