Skip to content

Commit 4e3b4ea

Browse files
committed
---
yaml --- r: 344058 b: refs/heads/master-rebranch c: e1e6f0e h: refs/heads/master
1 parent 791cc5a commit 4e3b4ea

File tree

6 files changed

+143
-136
lines changed

6 files changed

+143
-136
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: 67c668200a271eb76aa77ba5b279b860a5e8b275
1458+
refs/heads/master-rebranch: e1e6f0e7ba89bd7a1e369a291bf419cf250919d5
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec

branches/master-rebranch/include/swift/SIL/TypeLowering.h

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,13 @@ class TypeConverter {
844844
/// Returns the formal type, lowered AST type, and SILFunctionType
845845
/// for a constant reference.
846846
const SILConstantInfo &getConstantInfo(SILDeclRef constant);
847-
847+
848+
/// Get the generic environment for a constant.
849+
GenericSignature *getConstantGenericSignature(SILDeclRef constant);
850+
848851
/// Get the generic environment for a constant.
849852
GenericEnvironment *getConstantGenericEnvironment(SILDeclRef constant);
850-
853+
851854
/// Returns the SIL type of a constant reference.
852855
SILType getConstantType(SILDeclRef constant) {
853856
return getConstantInfo(constant).getSILType();
@@ -944,17 +947,6 @@ class TypeConverter {
944947
SILType getSubstitutedStorageType(AbstractStorageDecl *value,
945948
Type lvalueType);
946949

947-
/// Retrieve the set of archetypes closed over by the given function.
948-
GenericEnvironment *getEffectiveGenericEnvironment(AnyFunctionRef fn,
949-
CaptureInfo captureInfo);
950-
951-
/// Retrieve the set of generic parameters closed over by the given function.
952-
CanGenericSignature getEffectiveGenericSignature(AnyFunctionRef fn,
953-
CaptureInfo captureInfo);
954-
955-
/// Retrieve the set of generic parameters closed over by the context.
956-
CanGenericSignature getEffectiveGenericSignature(DeclContext *dc);
957-
958950
/// Push a generic function context. See GenericContextScope for an RAII
959951
/// interface to this function.
960952
///

branches/master-rebranch/lib/AST/ASTDumper.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,17 @@ namespace {
988988
if (P->isAutoClosure())
989989
OS << " autoclosure";
990990

991-
if (P->getDefaultArgumentKind() != DefaultArgumentKind::None)
991+
if (P->getDefaultArgumentKind() != DefaultArgumentKind::None) {
992992
printField("default_arg",
993993
getDefaultArgumentKindString(P->getDefaultArgumentKind()));
994+
}
995+
996+
if (P->getDefaultValue() &&
997+
!P->getDefaultArgumentCaptureInfo().isTrivial()) {
998+
OS << " ";
999+
P->getDefaultArgumentCaptureInfo().print(
1000+
PrintWithColorRAII(OS, CapturesColor).getOS());
1001+
}
9941002

9951003
if (auto init = P->getDefaultValue()) {
9961004
OS << " expression=\n";

0 commit comments

Comments
 (0)