Files
swift-mirror/test/DebugInfo/runtime-failure.swift
Adrian Prantl 92d7e63306 Unique the debug info function declarations for Swift runtime failure messages.
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
2022-06-15 08:35:16 -07:00

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"