Skip to content

Commit

Permalink
Apply swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
kyouko-taiga committed Oct 2, 2023
1 parent 1a24155 commit fe7a5c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/CodeGen/LLVM/Transpilation.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Core
import IR
import Foundation
import IR
import LLVM
import Utils

Expand Down Expand Up @@ -335,7 +335,7 @@ extension LLVM.Module {
private mutating func demandMetatype<T: TypeProtocol>(
of t: T, usedIn m: IR.Module, from ir: IR.Program,
initializedWith initializeInstance: (inout Self, LLVM.GlobalVariable) -> Void
) -> LLVM.GlobalVariable{
) -> LLVM.GlobalVariable {
let globalName = ir.base.mangled(t)
if let g = global(named: globalName) { return g }

Expand Down
7 changes: 4 additions & 3 deletions Sources/Core/CompileTimeValues/GenericArguments.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public struct GenericArguments {
public init<S: Sequence>(
skolemizing parameters: S, in ast: AST
) where S.Element == GenericParameterDecl.ID {
self.contents = .init(uniqueKeysWithValues: parameters.map { (p) in
(key: p, value: ^GenericTypeParameterType(p, ast: ast))
})
self.contents = .init(
uniqueKeysWithValues: parameters.map { (p) in
(key: p, value: ^GenericTypeParameterType(p, ast: ast))
})
}

/// A collection with the parameters to which arguments are passed.
Expand Down

0 comments on commit fe7a5c1

Please sign in to comment.