Fix a regression on test/Sema/unused-expr.c by fixing the type predicates
to test for the right type class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41601 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index 0747bbc..1ddbccb 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -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())