[cfe-commits] r41601 - /cfe/trunk/Sema/SemaExpr.cpp
Chris Lattner
sabre at nondot.org
Wed Aug 29 23:10:42 PDT 2007
Author: lattner
Date: Thu Aug 30 01:10:41 2007
New Revision: 41601
URL: http://llvm.org/viewvc/llvm-project?rev=41601&view=rev
Log:
Fix a regression on test/Sema/unused-expr.c by fixing the type predicates
to test for the right type class.
Modified:
cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=41601&r1=41600&r2=41601&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Thu Aug 30 01:10:41 2007
@@ -1162,7 +1162,7 @@
if (lType->isRealType() && rType->isRealType())
return Context.IntTy;
} else {
- if (lType->isRealType() && rType->isRealType())
+ if (lType->isFloatingType() && rType->isFloatingType())
Diag(loc, diag::warn_floatingpoint_eq);
if (lType->isArithmeticType() && rType->isArithmeticType())
More information about the cfe-commits
mailing list