Skip to content

Commit 354ee9d

Browse files
committed
---
yaml --- r: 343262 b: refs/heads/master-rebranch c: 32a0c8e h: refs/heads/master
1 parent 975ffc1 commit 354ee9d

File tree

475 files changed

+48548
-47957
lines changed

Some content is hidden

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

475 files changed

+48548
-47957
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: 2bb451c7b54fdf14a4ad7f58324feb20f2904cca
1458+
refs/heads/master-rebranch: 32a0c8e49ff703d19e1452b230fa592180882974
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/cmake/modules/SwiftSource.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ function(_compile_swift_files
229229
# The standard library and overlays are always built resiliently.
230230
if(SWIFTFILE_IS_STDLIB)
231231
list(APPEND swift_flags "-enable-library-evolution")
232-
list(APPEND swift_flags "-Xfrontend" "-enable-ownership-stripping-after-serialization")
233232
endif()
234233

235234
if(SWIFT_STDLIB_USE_NONATOMIC_RC)

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/ASTContext.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ namespace swift {
112112

113113
enum class KnownProtocolKind : uint8_t;
114114

115-
namespace namelookup {
116-
class ImportCache;
117-
}
118-
119115
namespace syntax {
120116
class SyntaxArena;
121117
}
@@ -687,9 +683,7 @@ class ASTContext final {
687683
/// If there is no Clang module loader, returns a null pointer.
688684
/// The loader is owned by the AST context.
689685
ClangModuleLoader *getDWARFModuleLoader() const;
690-
691-
namelookup::ImportCache &getImportCache() const;
692-
686+
693687
/// Asks every module loader to verify the ASTs it has loaded.
694688
///
695689
/// Does nothing in non-asserts (NDEBUG) builds.
@@ -826,7 +820,7 @@ class ASTContext final {
826820
/// of the given decl context.
827821
///
828822
/// \param IDC The context whose member decls should be lazily parsed.
829-
std::vector<Decl *> parseMembers(IterableDeclContext *IDC);
823+
void parseMembers(IterableDeclContext *IDC);
830824

831825
/// Get the lazy function data for the given generic context.
832826
///

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)