Skip to content

Commit

Permalink
Add @inline(never) to certain generated functions (#442)
Browse files Browse the repository at this point in the history
- See details in #441
  • Loading branch information
rudro authored Nov 16, 2022
1 parent 9d15211 commit eb429a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Generator/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let package = Package(
.library(name: "NeedleFramework", targets: ["NeedleFramework"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-tools-support-core", .exact("0.2.5")),
.package(url: "https://github.com/apple/swift-tools-support-core", .exact("0.2.7")),
.package(url: "https://github.com/uber/swift-concurrency.git", .upToNextMajor(from: "0.6.5")),
.package(url: "https://github.com/uber/swift-common.git", .exact("0.5.0")),
.package(url: "https://github.com/apple/swift-syntax.git", .exact(swiftSyntaxVersion)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class OutputSerializer: Serializer {
.trimmingCharacters(in: .whitespacesAndNewlines)
let regNum = ($0 / linesPerHelper) + 1
registrationHelperFuncs.append("""
private func register\(regNum)() {
@inline(never) private func register\(regNum)() {
\(helperBody)
}
""")
Expand Down

0 comments on commit eb429a6

Please sign in to comment.