Skip to content

Commit cf6723d

Browse files
committed
Add @_semantics(constant_evaluable) to FixedWidthInteger.bitwidth
Needed for OSLogOptimization to look through the call to this function in cases it isn't inlined. rdar://148256435
1 parent 274c4d9 commit cf6723d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,7 @@ where Magnitude: FixedWidthInteger & UnsignedInteger,
21582158

21592159
extension FixedWidthInteger {
21602160
@inlinable
2161+
@_semantics("constant_evaluable")
21612162
public var bitWidth: Int { return Self.bitWidth }
21622163

21632164
@inlinable

0 commit comments

Comments
 (0)