]> granicus.if.org Git - clang/commitdiff
[AST] Follow-up to r297972, add default value for setGetterName/setSetterName if...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 16 Mar 2017 18:40:13 +0000 (18:40 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 16 Mar 2017 18:40:13 +0000 (18:40 +0000)
Fixes lldb build.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297974 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclObjC.h

index 642aa803bf85c8c662cdd7a7483eb27a70f1a89b..c2a09cd88a9c8de775b635abc119a101edfbd1f1 100644 (file)
@@ -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;
   }