Skip to content

Commit c408579

Browse files
committed
---
yaml --- r: 340702 b: refs/heads/rxwei-patch-1 c: 63c229b h: refs/heads/master
1 parent 4be3a6e commit c408579

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: e15671327617382ca144c81d125a2ddd76e6d82b
1018+
refs/heads/rxwei-patch-1: 63c229b4a8bb5a09d69989dfa25b6a8f6d303f19
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/lib/SILOptimizer/Utils/CastOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ static bool optimizeStaticallyKnownProtocolConformance(
15721572
if (!Conformance)
15731573
return false;
15741574

1575-
SILBuilder B(Inst);
1575+
SILBuilderWithScope B(Inst);
15761576
SmallVector<ProtocolConformanceRef, 1> NewConformances;
15771577
NewConformances.push_back(Conformance.getValue());
15781578
ArrayRef<ProtocolConformanceRef> Conformances =

branches/rxwei-patch-1/stdlib/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ else()
5151
# everything and there are various places where we link runtime code with
5252
# code built by the host compiler. Disable sanitizers for the runtime for
5353
# now.
54-
append("-fno-sanitize=all" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
54+
add_compile_options(-fno-sanitize=all)
5555
endif()
5656

5757
# Do not enforce checks for LLVM's ABI-breaking build settings.
@@ -60,7 +60,11 @@ endif()
6060
# on the presence of symbols in libSupport to identify how the code was
6161
# built and cause link failures for mismatches. Without linking that library,
6262
# we get link failures regardless, so instead, this just disables the checks.
63-
append("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
63+
if(CMAKE_VERSION VERSION_LESS 3.12)
64+
append("-DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
65+
else()
66+
add_compile_definitions(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1)
67+
endif()
6468

6569
set(SWIFT_STDLIB_LIBRARY_BUILD_TYPES)
6670
if(SWIFT_BUILD_DYNAMIC_STDLIB)

branches/rxwei-patch-1/stdlib/public/Platform/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ foreach(sdk ${SWIFT_SDKS})
9595
set(GLIBC_ARCH_INCLUDE_PATH "${SWIFT_SDK_${sdk}_ARCH_${arch}_PATH}${GLIBC_ARCH_INCLUDE_PATH}")
9696
endif()
9797

98-
if(${sdk} STREQUAL ANDROID)
98+
if(sdk STREQUAL ANDROID)
9999
set(glibc_modulemap_source "bionic.modulemap.gyb")
100100
else()
101101
set(glibc_modulemap_source "glibc.modulemap.gyb")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %target-swift-frontend -emit-sil -o /dev/null \
2+
// RUN: %s -Xllvm -sil-print-debuginfo -Onone -sil-verify-all \
3+
// RUN: -Xllvm -sil-print-after=diagnostic-constant-propagation \
4+
// RUN: 2>&1 | %FileCheck %s
5+
6+
// CHECK: alloc_stack $R, loc {{.*}}, scope 2
7+
// CHECK-NEXT: init_existential_addr {{.*}} : $*R, $Float, loc {{.*}}, scope 2
8+
// CHECK-NEXT: copy_addr [take] %8 to [initialization] %66 : $*Float, loc {{.*}}, scope 2
9+
10+
protocol R {}
11+
extension Float: R {}
12+
print(1.0 as Float? as! R)

branches/rxwei-patch-1/test/Sanitizers/tsan-norace-deinit-run-time.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
// REQUIRES: executable_test
55
// REQUIRES: tsan_runtime
66

7-
// Failing sporadically in CI
8-
// REQUIRES: rdar51804988
9-
107
// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
118
// don't support TSan.
129
// UNSUPPORTED: remote_run

0 commit comments

Comments
 (0)