showBRParamDiagnostics assumed stores happen only via function parameters while that can also happen via implicit parameters like 'self' or 'this'.
The regression test caused a failed assert in the original cast to ParmVarDecl.
rdar://99687986
Differential D133815
[analyzer] Support implicit parameters in path note jkorous on Sep 13 2022, 4:00 PM. Authored by
Details showBRParamDiagnostics assumed stores happen only via function parameters while that can also happen via implicit parameters like 'self' or 'this'. rdar://99687986
Diff Detail Event TimelineComment Actions @NoQ I tried to tease out a note that would allow me to test 'this' as well but didn't find any such situation. Comment Actions Thanks nice!! That's right, this cannot be hit there because it's not represented by VarRegion (but by a CXXThisRegion). It's also a slightly different story because this, unlike self, cannot be reassigned mid-way.
Comment Actions Ok LGTM!
|
This looks like an llvm_unreachable() to me.