mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-26 07:34:14 +00:00
offsetof always has type size_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40b037ef61
commit
debbef20ee
@ -193,7 +193,7 @@ inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
|
return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
|
||||||
(size_t)offsetof(S, x)));
|
offsetof(S, x)));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // LLVM_SUPPORT_ALLOCATOR_H
|
#endif // LLVM_SUPPORT_ALLOCATOR_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user