aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Sema/SemaExpr.cpp3
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())