aboutsummaryrefslogtreecommitdiff
path: root/AST/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST/Type.cpp')
-rw-r--r--AST/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST/Type.cpp b/AST/Type.cpp
index 4d1cdf8497..c0c278d19e 100644
--- a/AST/Type.cpp
+++ b/AST/Type.cpp
@@ -436,7 +436,7 @@ bool Type::isFloatingType() const {
return BT->getKind() >= BuiltinType::Float &&
BT->getKind() <= BuiltinType::LongDouble;
if (const ComplexType *CT = dyn_cast<ComplexType>(CanonicalType))
- return CT->isFloatingType();
+ return CT->getElementType()->isFloatingType();
if (const VectorType *VT = dyn_cast<VectorType>(CanonicalType))
return VT->getElementType()->isFloatingType();
return false;