mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 21:36:39 +00:00

Fixes #46386 --- When an abbreviated function template appears in an `extern "C"` block and all template parameters are invented, `TemplateParams->getTemplateLoc()` becomes invalid, leading to an incorrect error location. These changes ensure that the error points to the parameter's location when the template location is invalid.