Driver: Fix Compilation::getArgsForToolChain, local variable was
shadowing member.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67167 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp
index b35bf24..1dcb8d8 100644
--- a/lib/Driver/Compilation.cpp
+++ b/lib/Driver/Compilation.cpp
@@ -41,11 +41,11 @@
if (!TC)
TC = &DefaultToolChain;
- ArgList *&Args = TCArgs[TC];
- if (!Args)
- Args = TC->TranslateArgs(*Args);
+ ArgList *&Entry = TCArgs[TC];
+ if (!Entry)
+ Entry = TC->TranslateArgs(*Args);
- return *Args;
+ return *Entry;
}
int Compilation::Execute() const {