[compiler-rt] [scudo] Add -Wconversion for tests and clean-up warnings. (PR #66147)
Mitch Phillips via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 14:50:39 PDT 2023
================
@@ -54,7 +54,7 @@ void checkMemoryTaggingMaybe(AllocatorT *Allocator, void *P, scudo::uptr Size,
EXPECT_DEATH(
{
disableDebuggerdMaybe();
- reinterpret_cast<char *>(P)[-1] = 0xaa;
+ reinterpret_cast<char *>(P)[-1] = '\xaa';
----------------
hctim wrote:
Let's just use 'A' (this is just a crash test, so the value doens't matter).
https://github.com/llvm/llvm-project/pull/66147
More information about the llvm-commits
mailing list