Do you think this happens enough that it should be issued by clang with -Wcompat?
Cheers, Pete > On Jul 21, 2015, at 11:59 AM, David Blaikie <dblai...@gmail.com> wrote: > > Author: dblaikie > Date: Tue Jul 21 13:59:10 2015 > New Revision: 242826 > > URL: http://llvm.org/viewvc/llvm-project?rev=242826&view=rev > Log: > Fix GCC build due to shadowing > > Modified: > cfe/trunk/lib/CodeGen/CodeGenFunction.h > > Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=242826&r1=242825&r2=242826&view=diff > ============================================================================== > --- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original) > +++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Tue Jul 21 13:59:10 2015 > @@ -3006,8 +3006,8 @@ public: > "Extra arguments in non-variadic function!"); > > // If we still have any arguments, emit them using the type of the > argument. > - for (auto *Arg : llvm::make_range(Arg, ArgRange.end())) > - ArgTypes.push_back(getVarArgType(Arg)); > + for (auto *A : llvm::make_range(Arg, ArgRange.end())) > + ArgTypes.push_back(getVarArgType(A)); > > EmitCallArgs(Args, ArgTypes, ArgRange, CalleeDecl, ParamsToSkip); > } > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits