aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Compilation.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-18 05:58:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-18 05:58:45 +0000
commitaa3e0d292065fd50713b4c70647063c32d99a36a (patch)
treec88df4d5b91f0e27949e3e4c5172cac6e33e8f08 /lib/Driver/Compilation.cpp
parentc811b6c5e3ad403c535fba25a03c956599ff27a5 (diff)
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
Diffstat (limited to 'lib/Driver/Compilation.cpp')
-rw-r--r--lib/Driver/Compilation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp
index b35bf2402d..1dcb8d8f6e 100644
--- a/lib/Driver/Compilation.cpp
+++ b/lib/Driver/Compilation.cpp
@@ -41,11 +41,11 @@ const ArgList &Compilation::getArgsForToolChain(const ToolChain *TC) {
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 {