forked from OSchip/llvm-project
Driver: Fix Compilation::getArgsForToolChain, local variable was
shadowing member. llvm-svn: 67167
This commit is contained in:
parent
1197adcbf1
commit
aabaac4743
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue