]> granicus.if.org Git - clang/commitdiff
Fix GCC build due to shadowing
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 21 Jul 2015 18:59:10 +0000 (18:59 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 21 Jul 2015 18:59:10 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242826 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.h

index 7c2548b5046cf25783eddb4cfe3978379ddb1348..80929ab55c62ef114400a58e80e4b2b3de38b7cf 100644 (file)
@@ -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);
   }