From f5e2481b42fb4539232b5621adcfc03d2eeb4eb7 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Wed, 30 Nov 2022 17:25:30 +0000 Subject: [PATCH] msan: update shadow constant in strlen_of_shadow test strlen_of_shadow hardcodes the mem-to-shadow constant. That constant was changed in D137666; this CL updates the test accordingly. (Other tests will be updated separately.) Differential Revision: https://reviews.llvm.org/D139027 --- compiler-rt/test/msan/strlen_of_shadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/msan/strlen_of_shadow.cpp b/compiler-rt/test/msan/strlen_of_shadow.cpp index 5e7c89c..5257dc7 100644 --- a/compiler-rt/test/msan/strlen_of_shadow.cpp +++ b/compiler-rt/test/msan/strlen_of_shadow.cpp @@ -24,7 +24,7 @@ const char *mem_to_shadow(const char *p) { #elif defined(__s390x__) return (char *)(((uintptr_t)p & ~0xC00000000000ULL) + 0x080000000000ULL); #elif defined(__aarch64__) - return (char *)((uintptr_t)p ^ 0x6000000000ULL); + return (char *)((uintptr_t)p ^ 0xB00000000000ULL); #endif } -- 2.7.4