This is an archive of the discontinued LLVM Phabricator instance.

Update __sanitizer_get_allocated_begin to return const void*
ClosedPublic

Authored by thurston on Apr 3 2023, 5:42 PM.

Details

Summary

D147005 introduced __sanitizer_get_allocated_begin, with a return
value of void*. This involved a few naughty casts that dropped the
const. This patch adds back the const qualifier.

Diff Detail

Event Timeline

thurston created this revision.Apr 3 2023, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 5:42 PM
Herald added a subscriber: Enna1. · View Herald Transcript
thurston requested review of this revision.Apr 3 2023, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 5:42 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
This revision was not accepted when it landed; it landed in state Needs Review.Apr 3 2023, 5:49 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.

I submitted this patch to unbreak the buildbot: https://lab.llvm.org/buildbot/#/builders/19/builds/15896/steps/2/logs/stdio

Please provide post-commit review as appropriate.

vitalybuka reopened this revision.Apr 3 2023, 6:07 PM
vitalybuka added a subscriber: kstoimenov.

I submitted this patch to unbreak the buildbot: https://lab.llvm.org/buildbot/#/builders/19/builds/15896/steps/2/logs/stdio

Please provide post-commit review as appropriate.

@kstoimenov FYI

For post-commit review, don't upload like this. UI has no tool for post-commit review. I'll have to reopen/review/close.

Instead git push, and then assign audit from commited revision https://reviews.llvm.org/diffusion/commit/edit/1984344/

vitalybuka accepted this revision.Apr 3 2023, 6:07 PM
This revision is now accepted and ready to land.Apr 3 2023, 6:07 PM
vitalybuka closed this revision.Apr 3 2023, 6:07 PM