forked from OSchip/llvm-project
Use hasDefaultArg instead of getDefaultArg.
llvm-svn: 79967
This commit is contained in:
parent
c221a55f58
commit
5a532380a1
|
@ -277,7 +277,7 @@ void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) {
|
|||
// Find first parameter with a default argument
|
||||
for (p = 0; p < NumParams; ++p) {
|
||||
ParmVarDecl *Param = FD->getParamDecl(p);
|
||||
if (Param->getDefaultArg())
|
||||
if (Param->hasDefaultArg())
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ void Sema::CheckCXXDefaultArguments(FunctionDecl *FD) {
|
|||
unsigned LastMissingDefaultArg = 0;
|
||||
for(; p < NumParams; ++p) {
|
||||
ParmVarDecl *Param = FD->getParamDecl(p);
|
||||
if (!Param->getDefaultArg()) {
|
||||
if (!Param->hasDefaultArg()) {
|
||||
if (Param->isInvalidDecl())
|
||||
/* We already complained about this parameter. */;
|
||||
else if (Param->getIdentifier())
|
||||
|
|
Loading…
Reference in New Issue