[cfe-commits] r152428 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Daniel Dunbar
daniel at zuster.org
Fri Mar 9 12:02:48 PST 2012
Author: ddunbar
Date: Fri Mar 9 14:02:47 2012
New Revision: 152428
URL: http://llvm.org/viewvc/llvm-project?rev=152428&view=rev
Log:
[Sema] Remove dead getSourceRange() call, caught by Clang after marking
LLVM_READONLY.
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=152428&r1=152427&r2=152428&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprCXX.cpp Fri Mar 9 14:02:47 2012
@@ -3566,8 +3566,7 @@
false).isInvalid())
return 0;
if (Value.isSigned() && Value.isNegative()) {
- Self.Diag(KeyLoc, diag::err_dimension_expr_not_constant_integer),
- DimExpr->getSourceRange();
+ Self.Diag(KeyLoc, diag::err_dimension_expr_not_constant_integer);
return 0;
}
Dim = Value.getLimitedValue();
More information about the cfe-commits
mailing list