This is an archive of the discontinued LLVM Phabricator instance.

[GWP-ASan] Rework utilities (NFC)
ClosedPublic

Authored by cryptoad on Oct 20 2020, 11:15 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, 11:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2020, 11:15 AM
Herald added subscribers: Restricted Project, mgorny. · View Herald Transcript
cryptoad requested review of this revision.Oct 20 2020, 11:15 AM
hctim accepted this revision.Oct 20 2020, 11:51 AM
This revision is now accepted and ready to land.Oct 20 2020, 11:51 AM
cryptoad updated this revision to Diff 299448.Oct 20 2020, 12:56 PM

De-deduplicate a } by moving it outside of the #if block.
Technology is failing me today.

This revision was landed with ongoing or failed builds.Oct 20 2020, 4:05 PM
This revision was automatically updated to reflect the committed changes.