[cfe-commits] r67167 - /cfe/trunk/lib/Driver/Compilation.cpp
Daniel Dunbar
daniel at zuster.org
Tue Mar 17 22:58:46 PDT 2009
Author: ddunbar
Date: Wed Mar 18 00:58:45 2009
New Revision: 67167
URL: http://llvm.org/viewvc/llvm-project?rev=67167&view=rev
Log:
Driver: Fix Compilation::getArgsForToolChain, local variable was
shadowing member.
Modified:
cfe/trunk/lib/Driver/Compilation.cpp
Modified: cfe/trunk/lib/Driver/Compilation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Compilation.cpp?rev=67167&r1=67166&r2=67167&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Compilation.cpp (original)
+++ cfe/trunk/lib/Driver/Compilation.cpp Wed Mar 18 00:58:45 2009
@@ -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 {
More information about the cfe-commits
mailing list