[compiler-rt] [TSan] Fix p == end == ShadowMem::end in ShadowSet (PR #144994)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 21 00:45:12 PDT 2025
================
@@ -578,8 +578,11 @@ static void MemoryRangeSet(uptr addr, uptr size, RawShadow val) {
Die();
}
// Set the ending.
- if (mid2 < end)
+ if (mid2 < end) {
ShadowSet(mid2, end, val);
+ } else {
----------------
thurstond wrote:
Nit: https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
https://github.com/llvm/llvm-project/pull/144994
More information about the llvm-commits
mailing list