forked from OSchip/llvm-project
parent
3c6bd2ad38
commit
9cc2782277
|
@ -1084,7 +1084,7 @@ static bool NeedsInstantiationAsFunctionType(TypeSourceInfo *T) {
|
|||
// TODO: currently we always rebuild expressions. When we
|
||||
// properly get lazier about this, we should use the same
|
||||
// logic to avoid rebuilding prototypes here.
|
||||
if (P->hasInit())
|
||||
if (P->hasDefaultArg())
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue