Skip to content

Commit 0f55bdc

Browse files
committed
---
yaml --- r: 343031 b: refs/heads/master-rebranch c: 6a54531 h: refs/heads/master i: 343029: 010ae02 343027: 0a9345c 343023: 80e0af1
1 parent 62569d7 commit 0f55bdc

File tree

231 files changed

+3548
-5109
lines changed

Some content is hidden

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

231 files changed

+3548
-5109
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: 609c3e16956fe7d29893ad6cffe9a980fbc75c34
1458+
refs/heads/master-rebranch: 6a545318116ae7de7017abf15a0a9b746d8cf851
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/docs/Diagnostics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Most diagnostics have no reason to change behavior under editor mode. An example
9797

9898
- `%0`, `%1`, etc - Formats the specified diagnostic argument based on its type.
9999

100-
- `%select{a|b|c}0` - Chooses from a list of alternatives, separated by vertical bars, based on the value of the given argument. In this example, a value of 2 in diagnostic argument 0 would result in "c" being output. The argument to the %select may be an integer, enum, or StringRef. If it's a StringRef, the specifier acts as an emptiness check.
100+
- `%select{a|b|c}0` - Chooses from a list of alternatives, separated by vertical bars, based on the value of the given argument. In this example, a value of 2 in diagnostic argument 0 would result in "c" being output.
101101

102102
- `%s0` - Produces an "s" if the given argument is anything other than 1, as meant for an English plural. This isn't particularly localizable without a more general `%plural` form, but most diagnostics try to avoid cases where a plural/singular distinction would be necessary in the first place.
103103

branches/master-rebranch/docs/SIL.rst

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,21 +2802,6 @@ It is expected that the strong reference count of the object is one.
28022802
Furthermore, no other thread may increment the strong reference count during
28032803
execution of this instruction.
28042804

2805-
copy_unowned_value
2806-
``````````````````
2807-
::
2808-
2809-
sil-instruction ::= 'copy_unowned_value' sil-operand
2810-
2811-
%1 = copy_unowned_value %0 : $@unowned T
2812-
// %1 will be a strong @owned value of type $T.
2813-
// $T must be a reference type
2814-
2815-
Asserts that the strong reference count of the heap object referenced by ``%0``
2816-
is still positive, then increments the reference count and returns a new strong
2817-
reference to ``%0``. The intention is that this instruction is used as a "safe
2818-
ownership conversion" from ``unowned`` to ``strong``.
2819-
28202805
strong_retain_unowned
28212806
`````````````````````
28222807
::
@@ -3727,21 +3712,6 @@ This instruction has the same local semantics as ``retain_value`` but:
37273712
The intention is that this instruction is used to implement unmanaged
37283713
constructs.
37293714

3730-
copy_unmanaged_value
3731-
``````````````````````
3732-
3733-
::
3734-
3735-
sil-instruction ::= 'copy_unmanaged_value' sil-value
3736-
3737-
%1 = copy_unmanaged_value %0 : $@sil_unmanaged A
3738-
// %1 will be a strong @owned $A.
3739-
3740-
This instruction has the same semantics as ``copy_value`` except that its input
3741-
is a trivial ``@sil_unmanaged`` type that doesn't require ref counting. This is
3742-
intended to be used semantically as a "conversion" like instruction from
3743-
``unmanaged`` to ``strong`` and thus should never be removed by the optimizer.
3744-
37453715
copy_value
37463716
``````````
37473717

branches/master-rebranch/include/swift/AST/ASTNode.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ namespace swift {
3636
enum class DeclKind : uint8_t;
3737
enum class StmtKind;
3838

39-
struct ASTNode : public llvm::PointerUnion<Expr*, Stmt*, Decl*> {
39+
struct ASTNode : public llvm::PointerUnion3<Expr*, Stmt*, Decl*> {
4040
// Inherit the constructors from PointerUnion.
41-
using PointerUnion::PointerUnion;
42-
41+
using PointerUnion3::PointerUnion3;
42+
4343
SourceRange getSourceRange() const;
4444

4545
/// Return the location of the start of the statement.

0 commit comments

Comments
 (0)