Skip to content

Commit 2a41b10

Browse files
authored
---
yaml --- r: 326515 b: refs/heads/tensorflow c: da39eec h: refs/heads/master i: 326513: d39c7c5 326511: c8d8e46
1 parent 3ed0463 commit 2a41b10

File tree

96 files changed

+2882
-449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+2882
-449
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: 47a254bfee2329347c8ae623d6098a2f04a620d2
819+
refs/heads/tensorflow: da39eec95ebd9d0ffae2f6ff0826c51d2e9198cb
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/include/swift/AST/DiagnosticsSema.def

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ ERROR(could_not_find_value_member,none,
8181
ERROR(could_not_find_value_member_corrected,none,
8282
"value of type %0 has no member %1; did you mean %2?",
8383
(Type, DeclName, DeclName))
84+
ERROR(could_not_find_value_dynamic_member_corrected,none,
85+
"value of type %0 has no dynamic member %2 using key path from root type %1; did you mean %3?",
86+
(Type, Type, DeclName, DeclName))
87+
ERROR(could_not_find_value_dynamic_member,none,
88+
"value of type %0 has no dynamic member %2 using key path from root type %1",
89+
(Type, Type, DeclName))
90+
8491
ERROR(could_not_find_type_member,none,
8592
"type %0 has no member %1", (Type, DeclName))
8693
ERROR(could_not_find_type_member_corrected,none,
@@ -3393,6 +3400,18 @@ ERROR(pattern_type_mismatch_context,none,
33933400

33943401
ERROR(tuple_pattern_in_non_tuple_context,none,
33953402
"tuple pattern cannot match values of the non-tuple type %0", (Type))
3403+
WARNING(matching_pattern_with_many_assoc_values, none,
3404+
"cannot match several associated values at once, "
3405+
"implicitly tupling the associated values and trying to match that "
3406+
"instead", ())
3407+
WARNING(matching_tuple_pattern_with_many_assoc_values,none,
3408+
"a tuple pattern cannot match several associated values at once, "
3409+
"implicitly tupling the associated values and trying to match "
3410+
"that instead", ())
3411+
WARNING(matching_many_patterns_with_tupled_assoc_value,none,
3412+
"the enum case has a single tuple as an associated value, but "
3413+
"there are several patterns here, implicitly tupling the patterns "
3414+
"and trying to match that instead", ())
33963415
ERROR(closure_argument_list_tuple,none,
33973416
"contextual closure type %0 expects %1 argument%s1, "
33983417
"but %2 %select{were|was}3 used in closure body", (Type, unsigned, unsigned, bool))

branches/tensorflow/include/swift/AST/NameLookupTypeIDZone.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ SWIFT_TYPEID(ExtendedNominalRequest)
2121
SWIFT_TYPEID(SelfBoundsFromWhereClauseRequest)
2222
SWIFT_TYPEID(TypeDeclsFromWhereClauseRequest)
2323
SWIFT_TYPEID(CustomAttrNominalRequest)
24-
SWIFT_TYPEID(GetDestructorRequest)
24+
SWIFT_TYPEID(GetDestructorRequest)

branches/tensorflow/include/swift/AST/PatternNodes.def

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,19 @@
3232
#define LAST_PATTERN(Id)
3333
#endif
3434

35-
PATTERN(Paren, Pattern)
36-
PATTERN(Tuple, Pattern)
37-
PATTERN(Named, Pattern)
38-
PATTERN(Any, Pattern)
39-
PATTERN(Typed, Pattern)
40-
PATTERN(Var, Pattern)
41-
REFUTABLE_PATTERN(Is, Pattern)
42-
REFUTABLE_PATTERN(EnumElement, Pattern)
43-
REFUTABLE_PATTERN(OptionalSome, Pattern)
44-
REFUTABLE_PATTERN(Bool, Pattern)
45-
REFUTABLE_PATTERN(Expr, Pattern)
35+
// Metavars: x (variable), pat (pattern), e (expression)
36+
PATTERN(Paren, Pattern) // (pat)
37+
PATTERN(Tuple, Pattern) // (pat1, ..., patN), N >= 1
38+
PATTERN(Named, Pattern) // let pat, var pat
39+
PATTERN(Any, Pattern) // _
40+
PATTERN(Typed, Pattern) // pat : type
41+
PATTERN(Var, Pattern) // x
42+
REFUTABLE_PATTERN(Is, Pattern) // x is myclass
43+
REFUTABLE_PATTERN(EnumElement, Pattern) // .mycase(pat1, ..., patN)
44+
// MyType.mycase(pat1, ..., patN)
45+
REFUTABLE_PATTERN(OptionalSome, Pattern) // pat? nil
46+
REFUTABLE_PATTERN(Bool, Pattern) // true, false
47+
REFUTABLE_PATTERN(Expr, Pattern) // e
4648
LAST_PATTERN(Expr)
4749

4850
#undef REFUTABLE_PATTERN

branches/tensorflow/include/swift/Basic/CTypeIDZone.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ SWIFT_TYPEID_TEMPLATE1_NAMED(std::vector, Vector, typename T, T)
3939

4040
// LLVM ADT types.
4141
SWIFT_TYPEID_TEMPLATE1_NAMED(llvm::TinyPtrVector, TinyPtrVector, typename T, T)
42-
SWIFT_TYPEID_TEMPLATE1_NAMED(llvm::ArrayRef, ArrayRef, typename T, T)
42+
SWIFT_TYPEID_TEMPLATE1_NAMED(llvm::ArrayRef, ArrayRef, typename T, T)

branches/tensorflow/include/swift/SIL/ApplySite.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ class ApplySite {
264264
/// Returns true if \p oper is an argument operand and not the callee
265265
/// operand.
266266
bool isArgumentOperand(const Operand &oper) const {
267-
return oper.getOperandNumber() >= getOperandIndexOfFirstArgument();
267+
return oper.getOperandNumber() >= getOperandIndexOfFirstArgument() &&
268+
oper.getOperandNumber() < getOperandIndexOfFirstArgument() + getNumArguments();
268269
}
269270

270271
/// Return the applied argument index for the given operand.

0 commit comments

Comments
 (0)