[cfe-commits] r44054 - /cfe/trunk/Sema/SemaExpr.cpp

Ted Kremenek kremenek at apple.com
Tue Nov 13 10:40:33 PST 2007


Author: kremenek
Date: Tue Nov 13 12:40:33 2007
New Revision: 44054

URL: http://llvm.org/viewvc/llvm-project?rev=44054&view=rev
Log:
Updated diagnostic for -Wfloat-equal to underline the offending expressions.

Modified:
    cfe/trunk/Sema/SemaExpr.cpp

Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=44054&r1=44053&r2=44054&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Tue Nov 13 12:40:33 2007
@@ -1260,7 +1260,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())





More information about the cfe-commits mailing list