Author: akirtzidis
Date: Thu Mar 16 13:40:13 2017
New Revision: 297974

URL: http://llvm.org/viewvc/llvm-project?rev=297974&view=rev
Log:
[AST] Follow-up to r297972, add default value for setGetterName/setSetterName 
if a source-loc is not provided.

Fixes lldb build.

Modified:
    cfe/trunk/include/clang/AST/DeclObjC.h

Modified: cfe/trunk/include/clang/AST/DeclObjC.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclObjC.h?rev=297974&r1=297973&r2=297974&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclObjC.h (original)
+++ cfe/trunk/include/clang/AST/DeclObjC.h Thu Mar 16 13:40:13 2017
@@ -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;
   }


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to