mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This reduces the size of the debug info of (random benchmark) _StringProcessing.o by 1600 bytes. Modules with more arithmetic should benefit more. rdar://94060085
11 lines
344 B
Swift
11 lines
344 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
|
|
|
|
public func f(_ input: Int) -> Int {
|
|
return input * 2 + 1
|
|
}
|
|
|
|
// CHECK: distinct !DISubprogram(name: "Swift runtime failure: arithmetic overflow"
|
|
// CHECK-SAME: scope: ![[FILE:[0-9]+]]
|
|
// CHECK-SAME: file: ![[FILE]]
|
|
// CHECK-NOT: "Swift runtime failure: arithmetic overflow"
|