Use the appropriate SourceLocation for the template backtrace when doing
template argument deduction.