From 729a2131228cb7fcbc00bd8af36bc6f14d12317d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 30 Aug 2007 06:19:11 +0000 Subject: [PATCH] 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 --- AST/Type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(CanonicalType)) - return CT->isFloatingType(); + return CT->getElementType()->isFloatingType(); if (const VectorType *VT = dyn_cast(CanonicalType)) return VT->getElementType()->isFloatingType(); return false; -- 2.50.1