This change removes Location param in setError() functions. It was never used.
Alternative to https://reviews.llvm.org/D22565
You are partly right. The information provided by the second argument is never used because the param in setError() function is unused. This is the true origin of this patch.
I've changes that in https://reviews.llvm.org/D22565. But apparently nobody cares about this detail in error reports as this has been unnoticed for years. So this patch keeps status quo and simplifies the code.