[clang] [Clang][Sema] fix crash in codegen stage when an lambda expression declared in an unevaluated context (PR #80802)

Qizhi Hu via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 02:43:50 PST 2024


================
@@ -1614,7 +1614,19 @@ bool TemplateInstantiator::AlreadyTransformed(QualType T) {
   if (T.isNull())
     return true;
 
-  if (T->isInstantiationDependentType() || T->isVariablyModifiedType())
+  bool DependentLambdaType = false;
+  QualType DesugaredType = T.getDesugaredType(SemaRef.getASTContext());
----------------
jcsxky wrote:

Indeed, code has been fixed.

https://github.com/llvm/llvm-project/pull/80802


More information about the cfe-commits mailing list