This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Rework utilities (NFC)
AbandonedPublic

Authored by cryptoad on Oct 20 2020, 10:16 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:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 10:16 AM
Herald added subscribers: Restricted Project, mgorny. · View Herald Transcript
cryptoad requested review of this revision.Oct 20 2020, 10:16 AM
cryptoad updated this revision to Diff 299421.Oct 20 2020, 11:09 AM
  • prefer GWP_ASAN_ALWAYS_INLINE
  • change file name in header comment
  • clang-format (note that this time it wants 2 spaces at #else /shrug)

Ok this is bugging out on me, arc think that one file is copied from the other in a loop or something and then it messes with the headers.

cryptoad abandoned this revision.Oct 20 2020, 11:13 AM