[compiler-rt] 0c9145f - [msan] Fix -Wcast-qual error in msan_dl.cpp
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 14:06:05 PDT 2023
Author: Thurston Dang
Date: 2023-07-11T21:04:51Z
New Revision: 0c9145f4134312fce41fa52099cd45358ed572a5
URL: https://github.com/llvm/llvm-project/commit/0c9145f4134312fce41fa52099cd45358ed572a5
DIFF: https://github.com/llvm/llvm-project/commit/0c9145f4134312fce41fa52099cd45358ed572a5.diff
LOG: [msan] Fix -Wcast-qual error in msan_dl.cpp
Fix build breakage from https://reviews.llvm.org/D154272.
(I accidentally dropped the fix when I relanded the patch.)
Added:
Modified:
compiler-rt/lib/msan/msan_dl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan_dl.cpp b/compiler-rt/lib/msan/msan_dl.cpp
index 624e3fe6b6817e..4f9ba52cf47d17 100644
--- a/compiler-rt/lib/msan/msan_dl.cpp
+++ b/compiler-rt/lib/msan/msan_dl.cpp
@@ -35,7 +35,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 *));
More information about the llvm-commits
mailing list