diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-13 18:40:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-13 18:40:33 +0000 |
commit | 0da493e705a93f490dc43738f3d41db5830faadb (patch) | |
tree | aa37353c543b0b76410ebe7c3240cff3f7b7be47 | |
parent | db87bca211deed14f8d5bb9ef25b8e9ee5c8e139 (diff) |
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
-rw-r--r-- | Sema/SemaExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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()) |