diff options
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index b7a429991f4..cf0dab5cf29 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1789,7 +1789,7 @@ Sema::DeclPtrTy Sema::ActOnUsingDeclaration(Scope *S,                                            AttributeList *AttrList,                                            bool IsTypeName) {    assert(!SS.isInvalid() && "Invalid CXXScopeSpec."); -  assert(TargetName || Op && "Invalid TargetName."); +  assert((TargetName || Op) && "Invalid TargetName.");    assert(IdentLoc.isValid() && "Invalid TargetName location.");    assert(S->getFlags() & Scope::DeclScope && "Invalid Scope."); @@ -2746,7 +2746,8 @@ bool Sema::CheckOverloadedOperatorDeclaration(FunctionDecl *FnDecl) {                                     ParamEnd = FnDecl->param_end();           Param != ParamEnd; ++Param) {        QualType ParamType = (*Param)->getType().getNonReferenceType(); -      if (ParamType->isRecordType() || ParamType->isEnumeralType()) { +      if (ParamType->isDependentType() || ParamType->isRecordType() || +          ParamType->isEnumeralType()) {          ClassOrEnumParam = true;          break;        } | 

