Skip to content

Commit be3974a

Browse files
committed
[AST] Drop unnecessary pass-by-reference from simple_display for ValueDecls.
1 parent 793ba72 commit be3974a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6650,7 +6650,7 @@ std::pair<DefaultArgumentKind, Type>
66506650
getDefaultArgumentInfo(ValueDecl *source, unsigned Index);
66516651

66526652
/// Display ValueDecl subclasses.
6653-
void simple_display(llvm::raw_ostream &out, const ValueDecl *&decl);
6653+
void simple_display(llvm::raw_ostream &out, const ValueDecl *decl);
66546654

66556655
} // end namespace swift
66566656

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5801,7 +5801,7 @@ NominalTypeDecl *TypeOrExtensionDecl::getBaseNominal() const {
58015801
}
58025802
bool TypeOrExtensionDecl::isNull() const { return Decl.isNull(); }
58035803

5804-
void swift::simple_display(llvm::raw_ostream &out, const ValueDecl *&decl) {
5804+
void swift::simple_display(llvm::raw_ostream &out, const ValueDecl *decl) {
58055805
if (decl) decl->dumpRef(out);
58065806
else out << "(null)";
58075807
}

0 commit comments

Comments
 (0)