We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01761a7 commit 39af196Copy full SHA for 39af196
clang/lib/AST/Type.cpp
@@ -2301,8 +2301,7 @@ bool Type::hasUnsignedIntegerRepresentation() const {
2301
2302
bool Type::isFloatingType() const {
2303
if (const auto *BT = dyn_cast<BuiltinType>(CanonicalType))
2304
- return BT->getKind() >= BuiltinType::Half &&
2305
- BT->getKind() <= BuiltinType::Ibm128;
+ return BT->isFloatingPoint();
2306
if (const auto *CT = dyn_cast<ComplexType>(CanonicalType))
2307
return CT->getElementType()->isFloatingType();
2308
return false;
0 commit comments