r296034 - [CodeGen] Silence unused variable warning in Release builds.

George Burgess IV via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 23 16:46:26 PST 2017


Thanks for catching this! :)

On Thu, Feb 23, 2017 at 2:47 PM, Benjamin Kramer via cfe-commits <
cfe-commits at lists.llvm.org> wrote:

> Author: d0k
> Date: Thu Feb 23 16:47:56 2017
> New Revision: 296034
>
> URL: http://llvm.org/viewvc/llvm-project?rev=296034&view=rev
> Log:
> [CodeGen] Silence unused variable warning in Release builds.
>
> Modified:
>     cfe/trunk/lib/CodeGen/CGVTables.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CG
> VTables.cpp?rev=296034&r1=296033&r2=296034&view=diff
> ============================================================
> ==================
> --- cfe/trunk/lib/CodeGen/CGVTables.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGVTables.cpp Thu Feb 23 16:47:56 2017
> @@ -284,7 +284,9 @@ void CodeGenFunction::EmitCallAndReturnF
>    if (isa<CXXDestructorDecl>(MD))
>      CGM.getCXXABI().adjustCallArgsForDestructorThunk(*this, CurGD,
> CallArgs);
>
> +#ifndef NDEBUG
>    unsigned PrefixArgs = CallArgs.size() - 1;
> +#endif
>    // Add the rest of the arguments.
>    for (const ParmVarDecl *PD : MD->parameters())
>      EmitDelegateCallArg(CallArgs, PD, SourceLocation());
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://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/20170223/0d68e938/attachment.html>


More information about the cfe-commits mailing list