File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -301,17 +301,6 @@ func _uncheckedUnsafeAssume(_ condition: Bool) {
301
301
_ = Builtin . assume_Int1 ( condition. _value)
302
302
}
303
303
304
- // This function is no longer used but must be kept for ABI compatibility
305
- // because references to it may have been inlined.
306
- @usableFromInline
307
- internal func _branchHint( _ actual: Bool , expected: Bool ) -> Bool {
308
- // The LLVM intrinsic underlying int_expect_Int1 now requires an immediate
309
- // argument for the expected value so we cannot call it here. This should
310
- // never be called in cases where performance matters, so just return the
311
- // value without any branch hint.
312
- return actual
313
- }
314
-
315
304
//===--- Runtime shim wrappers --------------------------------------------===//
316
305
317
306
/// Returns `true` iff the class indicated by `theClass` uses native
Original file line number Diff line number Diff line change @@ -60,3 +60,14 @@ extension Substring {
60
60
return try copy. withUTF8 ( body)
61
61
}
62
62
}
63
+
64
+ // This function is no longer used but must be kept for ABI compatibility
65
+ // because references to it may have been inlined.
66
+ @usableFromInline
67
+ internal func _branchHint( _ actual: Bool , expected: Bool ) -> Bool {
68
+ // The LLVM intrinsic underlying int_expect_Int1 now requires an immediate
69
+ // argument for the expected value so we cannot call it here. This should
70
+ // never be called in cases where performance matters, so just return the
71
+ // value without any branch hint.
72
+ return actual
73
+ }
You can’t perform that action at this time.
0 commit comments