[cfe-commits] r41603 - /cfe/trunk/AST/Type.cpp
Chris Lattner
sabre at nondot.org
Wed Aug 29 23:19:11 PDT 2007
Author: lattner
Date: Thu Aug 30 01:19:11 2007
New Revision: 41603
URL: http://llvm.org/viewvc/llvm-project?rev=41603&view=rev
Log:
fix a bug that is causing CodeGen/complex.c to be grumpy.
Modified:
cfe/trunk/AST/Type.cpp
Modified: cfe/trunk/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Type.cpp?rev=41603&r1=41602&r2=41603&view=diff
==============================================================================
--- cfe/trunk/AST/Type.cpp (original)
+++ cfe/trunk/AST/Type.cpp Thu Aug 30 01:19:11 2007
@@ -436,7 +436,7 @@
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;
More information about the cfe-commits
mailing list