MmapWriteExecChecker: use getAs instead of castAs
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Could you please simplify the test case?
You could basically get rid of everything there, except for forwarding one top level parameter as the proto argument to the mmap call.
Comment Actions
Land it, whenever you wish. Thanks!
PS: usually we don't have a comment like that. The name of the function should give enough context, along with a // no-crash comment at the line where it was triggered in the past.
That usually just helps reviewers to understand the issue, but as I triaged this I'm aware what's going on.
In tricky situations.
I just let you know about these conventions, no need to adjust this patch.