Thanks for catching this! :) On Thu, Feb 23, 2017 at 2:47 PM, Benjamin Kramer via cfe-commits < cfe-commits@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@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits