================
@@ -3138,6 +3138,11 @@ FunctionDecl::DefaultedOrDeletedFunctionInfo::Create(
 void FunctionDecl::setDefaultedOrDeletedInfo(
     DefaultedOrDeletedFunctionInfo *Info) {
   assert(!FunctionDeclBits.HasDefaultedOrDeletedInfo && "already have this");
+
+  // Guard against assertions tripping during error-recovery states
+  if (isInvalidDecl() || Body)
----------------
purnima-nlp wrote:

I see , i just suppressed the assertion but I should have thought about the 
complete backward flow , the root cause of this bug.
Thanks for your feedback, I'm actively working on this. 

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

Reply via email to