efriedma added a comment. See https://reviews.llvm.org/D38299; from the discussion here and my testing, it seems like that patch more closely matches what gcc actually does. Repository: rL LLVM https://reviews.llvm.org/D38050