[llvm-commits] [llvm] r98854 - /llvm/trunk/include/llvm/Support/Allocator.h

Dan Gohman gohman at apple.com
Thu Mar 18 12:37:35 PDT 2010


Author: djg
Date: Thu Mar 18 14:37:35 2010
New Revision: 98854

URL: http://llvm.org/viewvc/llvm-project?rev=98854&view=rev
Log:
offsetof always has type size_t.

Modified:
    llvm/trunk/include/llvm/Support/Allocator.h

Modified: llvm/trunk/include/llvm/Support/Allocator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Allocator.h?rev=98854&r1=98853&r2=98854&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Allocator.h (original)
+++ llvm/trunk/include/llvm/Support/Allocator.h Thu Mar 18 14:37:35 2010
@@ -193,7 +193,7 @@
 #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





More information about the llvm-commits mailing list