summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r--llvm/lib/VMCore/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp
index b41d1a0414e..00c6d48dceb 100644
--- a/llvm/lib/VMCore/Type.cpp
+++ b/llvm/lib/VMCore/Type.cpp
@@ -977,7 +977,7 @@ const IntegerType *IntegerType::get(unsigned NumBits) {
bool IntegerType::isPowerOf2ByteWidth() const {
unsigned BitWidth = getBitWidth();
- return (BitWidth > 7 && Log2_32(BitWidth) == Log2_32_Ceil(BitWidth));
+ return (BitWidth > 7) && isPowerOf2_32(BitWidth);
}
// FunctionValType - Define a class to hold the key that goes into the TypeMap
OpenPOWER on IntegriCloud