[cfe-commits] r152442 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Daniel Dunbar
daniel at zuster.org
Fri Mar 9 13:38:22 PST 2012
Author: ddunbar
Date: Fri Mar 9 15:38:22 2012
New Revision: 152442
URL: http://llvm.org/viewvc/llvm-project?rev=152442&view=rev
Log:
[Sema] Fix a diag change to include a range that appeared intended, but never
actually happened.
Modified:
cfe/trunk/lib/Sema/SemaExprCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprCXX.cpp?rev=152442&r1=152441&r2=152442&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Fri Mar 9 15:38:22 2012
@@ -3566,7 +3566,8 @@
false).isInvalid())
return 0;
if (Value.isSigned() && Value.isNegative()) {
- Self.Diag(KeyLoc, diag::err_dimension_expr_not_constant_integer);
+ Self.Diag(KeyLoc, diag::err_dimension_expr_not_constant_integer)
+ << DimExpr->getSourceRange();
return 0;
}
Dim = Value.getLimitedValue();
More information about the cfe-commits
mailing list