From 1da10d25d9afab060a602bb7b67129315812b5a7 Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Thu, 6 Jul 2023 17:58:04 +0000 Subject: [PATCH] [msan] Fix -Wcast-qual error in msan_dl.cpp Attempt 2 at fixing a buildbot error https://lab.llvm.org/buildbot#builders/57/builds/28143 that I had introduced in D154272 --- compiler-rt/lib/msan/msan_dl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/msan/msan_dl.cpp b/compiler-rt/lib/msan/msan_dl.cpp index 404b0d7..9814703 100644 --- a/compiler-rt/lib/msan/msan_dl.cpp +++ b/compiler-rt/lib/msan/msan_dl.cpp @@ -34,7 +34,7 @@ void UnpoisonDllAddr1ExtraInfo(void **extra_info, int flags) { if (flags == RTLD_DL_SYMENT) { __msan_unpoison(extra_info, sizeof(void *)); - const ElfW(Sym) *s = (const ElfW(Sym) *)*((const ElfW(Sym) **)(extra_info)); + ElfW(Sym) *s = *((ElfW(Sym) **)(extra_info)); __msan_unpoison(s, sizeof(ElfW(Sym))); } else if (flags == RTLD_DL_LINKMAP) { __msan_unpoison(extra_info, sizeof(void *)); -- 2.7.4