r362005 - Fix an unused-variable error.

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 3 12:28:12 PDT 2019


If this is the only use of 'S', might be better/good to roll the expression
into the assertion?

On Wed, May 29, 2019 at 11:33 AM Haojian Wu via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: hokein
> Date: Wed May 29 11:36:54 2019
> New Revision: 362005
>
> URL: http://llvm.org/viewvc/llvm-project?rev=362005&view=rev
> Log:
> Fix an unused-variable error.
>
> Modified:
>     cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp
>
> Modified: cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp?rev=362005&r1=362004&r2=362005&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp (original)
> +++ cfe/trunk/lib/StaticAnalyzer/Core/Environment.cpp Wed May 29 11:36:54
> 2019
> @@ -248,6 +248,7 @@ void Environment::printJson(raw_ostream
>        }
>
>        const Stmt *S = I->first.getStmt();
> +      (void)S;
>        assert(S != nullptr && "Expected non-null Stmt");
>
>        LastI = I;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190603/064d7a19/attachment.html>


More information about the cfe-commits mailing list