From: Argyrios Kyrtzidis Date: Thu, 16 Mar 2017 18:40:13 +0000 (+0000) Subject: [AST] Follow-up to r297972, add default value for setGetterName/setSetterName if... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dc8f232d986747b13f9b1f66e39646d204b1266;p=clang [AST] Follow-up to r297972, add default value for setGetterName/setSetterName if a source-loc is not provided. Fixes lldb build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclObjC.h b/include/clang/AST/DeclObjC.h index 642aa803bf..c2a09cd88a 100644 --- a/include/clang/AST/DeclObjC.h +++ b/include/clang/AST/DeclObjC.h @@ -858,14 +858,14 @@ public: Selector getGetterName() const { return GetterName; } SourceLocation getGetterNameLoc() const { return GetterNameLoc; } - void setGetterName(Selector Sel, SourceLocation Loc) { + void setGetterName(Selector Sel, SourceLocation Loc = SourceLocation()) { GetterName = Sel; GetterNameLoc = Loc; } Selector getSetterName() const { return SetterName; } SourceLocation getSetterNameLoc() const { return SetterNameLoc; } - void setSetterName(Selector Sel, SourceLocation Loc) { + void setSetterName(Selector Sel, SourceLocation Loc = SourceLocation()) { SetterName = Sel; SetterNameLoc = Loc; }