[compiler-rt] 9a8e461 - [NFC] fix type conversion issue
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 17:08:10 PST 2023
Author: Florian Mayer
Date: 2023-01-11T17:03:08-08:00
New Revision: 9a8e461648d1e04e839a9057ffc90410bd2ec98e
URL: https://github.com/llvm/llvm-project/commit/9a8e461648d1e04e839a9057ffc90410bd2ec98e
DIFF: https://github.com/llvm/llvm-project/commit/9a8e461648d1e04e839a9057ffc90410bd2ec98e.diff
LOG: [NFC] fix type conversion issue
Added:
Modified:
compiler-rt/lib/scudo/standalone/combined.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h
index fd375f4b83c1..d514faa6a7ac 100644
--- a/compiler-rt/lib/scudo/standalone/combined.h
+++ b/compiler-rt/lib/scudo/standalone/combined.h
@@ -1510,7 +1510,7 @@ class Allocator {
"invalid alignment");
}
- static constexpr u32 ringBufferSizeInBytes(u32 AllocationRingBufferSize) {
+ static constexpr size_t ringBufferSizeInBytes(u32 AllocationRingBufferSize) {
return sizeof(AllocationRingBuffer) +
AllocationRingBufferSize *
sizeof(typename AllocationRingBuffer::Entry);
More information about the llvm-commits
mailing list