summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-30 06:10:41 +0000
committerChris Lattner <sabre@nondot.org>2007-08-30 06:10:41 +0000
commit270228599d6efae2c8bc18eda47985042ce795c2 (patch)
treeb39b651787b340c49d3bf9ce2d68971fa239d400
parent257fa2ae22c37a89ee2aae64e04ca5be70e53a60 (diff)
downloadbcm5719-llvm-270228599d6efae2c8bc18eda47985042ce795c2.tar.gz
bcm5719-llvm-270228599d6efae2c8bc18eda47985042ce795c2.zip
Fix a regression on test/Sema/unused-expr.c by fixing the type predicates
to test for the right type class. llvm-svn: 41601
-rw-r--r--clang/Sema/SemaExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Sema/SemaExpr.cpp b/clang/Sema/SemaExpr.cpp
index 0747bbc8b1c..1ddbccb7e90 100644
--- a/clang/Sema/SemaExpr.cpp
+++ b/clang/Sema/SemaExpr.cpp
@@ -1162,7 +1162,7 @@ inline QualType Sema::CheckCompareOperands( // C99 6.5.8
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())
OpenPOWER on IntegriCloud