Skip to content

Commit b841f1e

Browse files
Dave AbrahamsDave Abrahams
authored andcommitted
Revert "[stdlib] Speculative workaround for ASAN failure"
This reverts commit dc86186. It didn't change anything.
1 parent 0c8ace9 commit b841f1e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,14 +1265,8 @@ func _impossible<T>(_:T.Type) -> T {
12651265
}
12661266

12671267
func _unsafeUpcast<T, U>(_ x: T, to: U.Type) -> U {
1268-
#if False
1269-
// disabled temporarily to speculatively work around a supposed optimizer bug
1270-
// that is triggering ASAN failures.
12711268
_sanityCheck(x is U)
12721269
return x as? U ?? _impossible(U.self)
1273-
#else
1274-
return x as! U
1275-
#endif
12761270
}
12771271

12781272
/// Perform a non-bridged upcast that always succeeds.

0 commit comments

Comments
 (0)