[clang] [Clang][Modules] Fix crash when redefining default template argument (PR #185237)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 9 20:03:18 PDT 2026
================
@@ -2472,13 +2473,23 @@ bool Sema::CheckTemplateParameterList(TemplateParameterList *NewParams,
NewDefaultLoc = NewTypeParm->getDefaultArgumentLoc();
SawDefaultArgument = true;
- if (!OldTypeParm->getOwningModule())
----------------
ChuanqiXu9 wrote:
How about simply replace `getOwningModule` with `getImportedOwningModule` here?
https://github.com/llvm/llvm-project/pull/185237
More information about the cfe-commits
mailing list