This is an archive of the discontinued LLVM Phabricator instance.

[NFC][sanitizer] Iterator adaptors for Leb128 encoding
ClosedPublic

Authored by vitalybuka on Dec 2 2021, 11:53 AM.

Details

Summary

It's similar to back_insert_iterator

Needed for D114924

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Dec 2 2021, 11:53 AM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2021, 11:53 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka edited the summary of this revision. (Show Details)Dec 2 2021, 12:44 PM

Also should we add tests for this?

compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
193

Why is this needed? Looks like both ++ operators are not changing anything.

Also should we add tests for this?

It's trivial and I don't plan to expose it into shared headers.
Code is already covered by CompressDelta tests

compiler-rt/lib/sanitizer_common/sanitizer_stack_store.cpp
193

for consistency, like with back_insert_iterator

morehouse accepted this revision.Dec 2 2021, 2:44 PM
This revision is now accepted and ready to land.Dec 2 2021, 2:44 PM
This revision was automatically updated to reflect the committed changes.