[compiler-rt] ed864f0 - [NFC] fix more type conversion issues
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 17:24:38 PST 2023
Author: Florian Mayer
Date: 2023-01-11T17:24:29-08:00
New Revision: ed864f0a09d1fc7eae96faa4eb35b33880e6c478
URL: https://github.com/llvm/llvm-project/commit/ed864f0a09d1fc7eae96faa4eb35b33880e6c478
DIFF: https://github.com/llvm/llvm-project/commit/ed864f0a09d1fc7eae96faa4eb35b33880e6c478.diff
LOG: [NFC] fix more type conversion issues
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 d514faa6a7ac..85433155e2e2 100644
--- a/compiler-rt/lib/scudo/standalone/combined.h
+++ b/compiler-rt/lib/scudo/standalone/combined.h
@@ -1482,12 +1482,12 @@ class Allocator {
}
static typename AllocationRingBuffer::Entry *
- getRingBufferEntry(char *RawRingBuffer, u32 N) {
+ getRingBufferEntry(char *RawRingBuffer, uptr N) {
return &reinterpret_cast<typename AllocationRingBuffer::Entry *>(
&RawRingBuffer[sizeof(AllocationRingBuffer)])[N];
}
static const typename AllocationRingBuffer::Entry *
- getRingBufferEntry(const char *RawRingBuffer, u32 N) {
+ getRingBufferEntry(const char *RawRingBuffer, uptr N) {
return &reinterpret_cast<const typename AllocationRingBuffer::Entry *>(
&RawRingBuffer[sizeof(AllocationRingBuffer)])[N];
}
More information about the llvm-commits
mailing list