File tree Expand file tree Collapse file tree 3 files changed +3
-29
lines changed
third_party/swift-llvm-support/patches Expand file tree Collapse file tree 3 files changed +3
-29
lines changed Original file line number Diff line number Diff line change 1
1
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
2
2
load ("@bazel_tools//tools/build_defs/repo:utils.bzl" , "maybe" )
3
3
4
- _swift_prebuilt_version = "swift-5.7.1-RELEASE.44356.85 "
4
+ _swift_prebuilt_version = "swift-5.7.1-RELEASE.44428.89 "
5
5
_swift_sha_map = {
6
- "Linux-X64" : "c9f17e13cac89f097aaaa65b1bc32aac566c8e4f3b68fc18e970cc3ee31f4913 " ,
7
- "macOS-X64" : "638ac0552e9e1ccee9e276525d1ea9454256feec20bc778efa8856fd6e506987 " ,
6
+ "Linux-X64" : "1fa0b62b3a87c6528bd21b3f3fa1b32ad00e2b6ff04c20652c93c7d00c4cf517 " ,
7
+ "macOS-X64" : "6e1239335874cbde635ae9ca9eeb215efee4988888a75f4eda1abbcf97e4d038 " ,
8
8
}
9
9
10
10
_swift_arch_map = {
@@ -22,10 +22,6 @@ def codeql_workspace(repository_name = "codeql"):
22
22
_swift_prebuilt_version ,
23
23
repo_arch ,
24
24
),
25
- patches = [
26
- "@%s//swift/third_party/swift-llvm-support:patches/remove_getFallthrougDest_assert.patch" % repository_name ,
27
- ],
28
- patch_args = ["-p1" ],
29
25
build_file = "@%s//swift/third_party/swift-llvm-support:BUILD.swift-prebuilt.bazel" % repository_name ,
30
26
sha256 = sha256 ,
31
27
)
Original file line number Diff line number Diff line change @@ -215,17 +215,6 @@ class SwiftDispatcher {
215
215
// Emits a Location TRAP entry and attaches it to a `Locatable` trap label
216
216
template <typename Locatable>
217
217
void attachLocation (Locatable* locatable, TrapLabel<LocatableTag> locatableLabel) {
218
- // Swift 5.7.1 causing a crash when the Swift compiler uses .back() of and empty
219
- // getPatternList() when getting the source location.
220
- // So far this only observed with the entities coming from precompiled modules, so they
221
- // should not have locations anyway.
222
- if constexpr (std::is_base_of<swift::Decl, Locatable>::value) {
223
- if (auto * decl = llvm::dyn_cast<swift::PatternBindingDecl>(locatable)) {
224
- if (decl->getPatternList ().empty ()) {
225
- return ;
226
- }
227
- }
228
- }
229
218
attachLocation (locatable->getStartLoc (), locatable->getEndLoc (), locatableLabel);
230
219
}
231
220
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments