This is an archive of the discontinued LLVM Phabricator instance.

[NFC][sanitizer] Fix headers of DenseMap
ClosedPublic

Authored by vitalybuka on Nov 16 2021, 5:24 PM.

Details

Summary

And remove large chunks of unneeded code.
Depends on D114046.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.Nov 16 2021, 5:24 PM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 16 2021, 5:24 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka edited the summary of this revision. (Show Details)Nov 16 2021, 5:38 PM
dvyukov accepted this revision.Nov 16 2021, 11:08 PM
This revision is now accepted and ready to land.Nov 16 2021, 11:08 PM
melver accepted this revision.Nov 17 2021, 2:44 AM
melver added inline comments.
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h
23

I wonder if this one is minimal enough that we could keep it and use it later to static_assert that the type is actually trivially destructible.

vitalybuka added inline comments.Nov 17 2021, 10:08 AM
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h
23

It would be nice, but now we compile with -nostdinc++
Probably allowing c++ headers needs a separate discussion.

vitalybuka added inline comments.Nov 17 2021, 6:37 PM
compiler-rt/lib/sanitizer_common/sanitizer_dense_map.h
23

I copied some stuff into sanitizer_type_traits.h

undo some removals

This revision was automatically updated to reflect the committed changes.