[clang] [analyzer] Fix crash on dereference invalid return value of getAdjustedParameterIndex() (PR #83585)

via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 07:40:31 PST 2024


mzyKi wrote:

> That would make the behavior consistent with the behavior for other explicit object functions (deducing this).
> To illustrate we have the following code, the AST and produced CallEvent are different:

Thanks for your help very much.I only fixed the symptoms of this bug without spending much time to find the root cause. I feel  ashamed. But I am not sure whether this change has some side effect.```MD->isInstance()``` replaced with ```MD->isImplicitObjectMemberFunction()``` will miss some cases create ```<CXXMemberOperatorCall>``` in my opinion.Will these missing cases unnecessary?

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


More information about the cfe-commits mailing list