[AST] Follow-up to r297972, add default value for setGetterName/setSetterName if a source-loc is not provided.

Fixes lldb build.

llvm-svn: 297974
This commit is contained in:
Argyrios Kyrtzidis 2017-03-16 18:40:13 +00:00
parent 4a7781aa38
commit eea3fd491d
1 changed files with 2 additions and 2 deletions

View 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;
}