efriedma-quic wrote:

In the example in 
https://github.com/llvm/llvm-project/pull/107581#issuecomment-2343651051 , 
there are four relevant calls to GetOrCreateLLVMFunction: one for each function 
with IsInDefinition false, and one for each function with IsInDefinition true.  
The last of those calls triggers the diagnostic

For the lambda example, there are only three relevant calls to 
GetOrCreateLLVMFunction; one for each function with IsInDefinition false, but 
then only one with IsInDefinition true.

It's not clear to me why the two cases are different, and I don't really want 
to add lambda-specific check without knowing why lambdas are special here.  
Maybe the right condition to check is something else.

https://github.com/llvm/llvm-project/pull/107581
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to