This is an archive of the discontinued LLVM Phabricator instance.

[msan] Fix compilation on non-glibc
ClosedPublic

Authored by brooks on Aug 28 2023, 5:07 PM.

Details

Summary

SANITIZER_GLIBC is always defined so should be tested with an if not an
ifdef.

Fixes: ad7e2501000d

Diff Detail

Event Timeline

brooks created this revision.Aug 28 2023, 5:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 5:07 PM
Herald added a subscriber: Enna1. · View Herald Transcript
brooks requested review of this revision.Aug 28 2023, 5:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 5:07 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
MaskRay accepted this revision.Aug 28 2023, 5:10 PM

Thanks!

This revision is now accepted and ready to land.Aug 28 2023, 5:10 PM

Sorry for the mistake. I tested Linux x86-64, Apple M1, and Windows. FreeBSD supports msan but macOS/Windows don't support it, so the issue was not caught.

MaskRay retitled this revision from [sanitizer] Fix compilation on non-glibc to [msan] Fix compilation on non-glibc.Aug 28 2023, 9:17 PM

Sorry, I'll commit this on your behalf to update a backport request: https://github.com/llvm/llvm-project/issues/64388.

This revision was automatically updated to reflect the committed changes.