Skip to content

Commit 322586b

Browse files
committed
reinterpret_cast<Florian>
1 parent cf66f50 commit 322586b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler-rt/lib/msan/msan_allocator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ static void *MsanAllocate(BufferedStackTrace *stack, uptr size, uptr alignment,
218218
auto *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated));
219219
meta->requested_size = size;
220220
uptr actually_allocated_size = allocator.GetActuallyAllocatedSize(allocated);
221-
void* padding_start =
222-
reinterpret_cast<void*>(reinterpret_cast<uptr>(allocated) + size);
221+
void* padding_start = reinterpret_cast<char*>(allocated) + size;
223222
uptr padding_size = actually_allocated_size - size;
224223

225224
// - With calloc(7,1), we can set the ideal tagging:

0 commit comments

Comments
 (0)