diff options
author | Thurston Dang <thurston@google.com> | 2023-07-11 21:04:51 +0000 |
---|---|---|
committer | Thurston Dang <thurston@google.com> | 2023-07-11 21:04:51 +0000 |
commit | 0c9145f4134312fce41fa52099cd45358ed572a5 (patch) | |
tree | 7ecfffcfc9e71d25f9402380548576e7f6902563 /compiler-rt | |
parent | bdeedfb4a5f9a46ed21ac21d3ec5ea6c1ec5e4fe (diff) | |
download | llvm-0c9145f4134312fce41fa52099cd45358ed572a5.zip llvm-0c9145f4134312fce41fa52099cd45358ed572a5.tar.gz llvm-0c9145f4134312fce41fa52099cd45358ed572a5.tar.bz2 |
[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.)
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/msan/msan_dl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/msan/msan_dl.cpp b/compiler-rt/lib/msan/msan_dl.cpp index 624e3fe..4f9ba52 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 *)); |