Skip to content

Commit e060363

Browse files
author
David Ungar
committed
Use getOriginalInit instead of PatternBindingEntry::hasInitStringRepresentation
1 parent 971537c commit e060363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ SourceRange PatternBindingEntry::getSourceRange(bool omitAccessors) const {
15761576
bool PatternBindingEntry::hasInitStringRepresentation() const {
15771577
if (InitContextAndFlags.getInt().contains(PatternFlags::IsText))
15781578
return !InitStringRepresentation.empty();
1579-
return getInit() && getInit()->getSourceRange().isValid();
1579+
return getOriginalInit() && getOriginalInit()->getSourceRange().isValid();
15801580
}
15811581

15821582
StringRef PatternBindingEntry::getInitStringRepresentation(

0 commit comments

Comments
 (0)