From 915311cc10912f15d4e3e7520c3dd8500c33acfc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 30 Aug 2007 06:10:41 +0000 Subject: [PATCH] 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 --- Sema/SemaExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 0747bbc8b1..1ddbccb7e9 100644 --- a/Sema/SemaExpr.cpp +++ b/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()) -- 2.40.0