forked from OSchip/llvm-project
[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:
parent
4a7781aa38
commit
eea3fd491d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue