From 0da493e705a93f490dc43738f3d41db5830faadb Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 13 Nov 2007 18:40:33 +0000 Subject: [PATCH] Updated diagnostic for -Wfloat-equal to underline the offending expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44054 91177308-0d34-0410-b5e6-96231b3b80d8 --- Sema/SemaExpr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 2981d4a054..a533da6306 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -1260,7 +1260,8 @@ inline QualType Sema::CheckCompareOperands( // C99 6.5.8 EmitWarning = false; if (EmitWarning) - Diag(loc, diag::warn_floatingpoint_eq); + Diag(loc, diag::warn_floatingpoint_eq, + lex->getSourceRange(),rex->getSourceRange()); } if (lType->isArithmeticType() && rType->isArithmeticType()) -- 2.50.1