diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-02 19:26:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-02 19:26:06 +0000 |
commit | 0561b3ff9fd08f9cda48551f2f91590ca5f60656 (patch) | |
tree | ddbf7eddcf6680a159fe0e0e89c277bdcf623940 /lib/Target/TargetData.cpp | |
parent | 3b65576527b7e0098a401289f9245eb5266fda31 (diff) |
Update to use the new MathExtras.h support for log2 computation.
Patch contributed by Jim Laskey!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r-- | lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index 3c71fdc3e0..75e76fe186 100644 --- a/lib/Target/TargetData.cpp +++ b/lib/Target/TargetData.cpp @@ -229,7 +229,7 @@ unsigned char TargetData::getTypeAlignment(const Type *Ty) const { unsigned char TargetData::getTypeAlignmentShift(const Type *Ty) const { unsigned Align = getTypeAlignment(Ty); assert(!(Align & (Align-1)) && "Alignment is not a power of two!"); - return log2(Align); + return Log2_32(Align); } /// getIntPtrType - Return an unsigned integer type that is the same size or |