[cfe-commits] r152428 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp
Richard Smith
richard at metafoo.co.uk
Fri Mar 9 12:44:23 PST 2012
On Fri, Mar 9, 2012 at 12:02 PM, Daniel Dunbar <daniel at zuster.org> wrote:
> 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);
>
This was probably intended to be Self.Diag(...) <<
DimExpr->getSourceRange();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120309/e2dfbdbc/attachment.html>
More information about the cfe-commits
mailing list