Driver: Fix Compilation::getArgsForToolChain, local variable was

shadowing member.

llvm-svn: 67167
This commit is contained in:
Daniel Dunbar 2009-03-18 05:58:45 +00:00
parent 1197adcbf1
commit aabaac4743
1 changed files with 4 additions and 4 deletions

View File

@ -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 {