aboutsummaryrefslogtreecommitdiff
path: root/AST/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-30 06:19:11 +0000
committerChris Lattner <sabre@nondot.org>2007-08-30 06:19:11 +0000
commit729a2131228cb7fcbc00bd8af36bc6f14d12317d (patch)
treee695366bf89fb4d4937b7949e9b2eb1f535b8671 /AST/Type.cpp
parente300c870f08d08badf2ebcb53ded49f304af37fc (diff)
fix a bug that is causing CodeGen/complex.c to be grumpy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41603 91177308-0d34-0410-b5e6-96231b3b80d8
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;