This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Rework utilities (NFC)
AbandonedPublic

Authored by cryptoad on Oct 20 2020, 10:11 AM.

Details

Summary

Few changes wrt utilities:

  • split Check into a platform agnostic condition test and a platform specific termination, for which we introduce the function die.
  • add a platform agnostic utilities.cpp that gets the allocation alignment functions original in the platform specific file, as they are reusable by all platforms.

Diff Detail

Event Timeline

cryptoad created this revision.Oct 20 2020, 10:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 10:11 AM
Herald added subscribers: Restricted Project, mgorny. · View Herald Transcript
cryptoad requested review of this revision.Oct 20 2020, 10:11 AM
cryptoad abandoned this revision.Oct 20 2020, 10:12 AM

Redoing this, arc is being weird.

(commenting to try and front my comments before your new patch)

compiler-rt/lib/gwp_asan/utilities.h
21

nit: prefer GWP_ASAN_ALWAYS_INLINE