This patch introduces updateDiscriminator to DILocation so that it can be directly called by AddDiscriminator. It also makes it easier to update the discriminator later.
"update" doesn't feel quite right. Would cloneWithDiscriminator() or something along those lines be any better?
We usually use auto if the type is obvious from the context.