projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
offsetof always has type size_t.
[oota-llvm.git]
/
include
/
llvm
/
Support
/
Allocator.h
diff --git
a/include/llvm/Support/Allocator.h
b/include/llvm/Support/Allocator.h
index cdb0fc85582193f4964d1ff991e5009af7adda79..b1f59dc05e7bb892cb2c2c614efc2140c10170dc 100644
(file)
--- a/
include/llvm/Support/Allocator.h
+++ b/
include/llvm/Support/Allocator.h
@@
-193,7
+193,7
@@
inline void *operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) {
#endif
};
return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size),
-
(size_t)
offsetof(S, x)));
+ offsetof(S, x)));
}
#endif // LLVM_SUPPORT_ALLOCATOR_H