[clang] Remove delayed typo expressions (PR #143423)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 9 20:34:17 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());
----------------
shafik wrote:
Curious, why the change to `dyn_cast`?
https://github.com/llvm/llvm-project/pull/143423
More information about the cfe-commits
mailing list