================
@@ -2472,13 +2473,23 @@ bool 
Sema::CheckTemplateParameterList(TemplateParameterList *NewParams,
         NewDefaultLoc = NewTypeParm->getDefaultArgumentLoc();
         SawDefaultArgument = true;
 
-        if (!OldTypeParm->getOwningModule())
----------------
ChuanqiXu9 wrote:

if (Module *M = OldTypeParm->getOwningModule(); !M  || !M->isModuleMapModule()) 
    ...

>From your analysis, it seems like we can solve it in this simpler manner?

https://github.com/llvm/llvm-project/pull/185237
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to