[clang] Remove delayed typo expressions (PR #143423)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 10 04:08:23 PDT 2025
================
@@ -14055,8 +14055,10 @@ FunctionDecl *Sema::ResolveSingleFunctionTemplateSpecialization(
// specified and it, along with any default template arguments,
// identifies a single function template specialization, then the
// template-id is an lvalue for the function template specialization.
- FunctionTemplateDecl *FunctionTemplate
- = cast<FunctionTemplateDecl>((*I)->getUnderlyingDecl());
+ FunctionTemplateDecl *FunctionTemplate =
+ dyn_cast<FunctionTemplateDecl>((*I)->getUnderlyingDecl());
----------------
AaronBallman wrote:
Fixes a latent crash delayed typo correction was hiding from us.
https://github.com/llvm/llvm-project/pull/143423
More information about the cfe-commits
mailing list