[msan] Fix compilation on non-glibc
authorBrooks Davis <brooks@one-eyed-alien.net>
Tue, 29 Aug 2023 04:22:29 +0000 (21:22 -0700)
committerTobias Hieta <tobias@hieta.se>
Wed, 30 Aug 2023 15:00:18 +0000 (17:00 +0200)
commitb6cf21feeead70805ecd1231827777492034afea
treedc1c22a5b8a0ee6b3af996679048bcc0cf373f7b
parentc8abecdaca4e5d7defd9d3f6c388d64f5ee03e47
[msan] Fix compilation on non-glibc

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

Fixes: ad7e2501000d

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D159041

(cherry picked from commit 692344d87357ded619d216b265a9375f4326d8fb)
compiler-rt/lib/msan/msan_interceptors.cpp