kmclaughlin-arm wrote:

> For non-lambda methods, the way this works it that we call 
> GetOrCreateLLVMFunction for both methods... for the first method, the 
> `!Entry->isDeclaration()` would be false, but for the second one, it would be 
> true because we've emitted the definition of the first method. What's 
> different for lambda methods?

I don't think lambda methods are any different to what you have described, but 
I think my previous explanation was unclear. What I found is that 
IsForDefinition is set only the second time GetOrCreateLLVMFunction is called, 
where `Entry->isDeclaration()` is also true.

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