Skip to content

Commit c3dd49c

Browse files
committed
Fix warning about overconstrained generic function
1 parent e24e47d commit c3dd49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LLVM/Constant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ extension Constant {
845845
///
846846
/// - returns: A constant value representing the constant value selected for
847847
/// by the condition.
848-
public static func select<T: ConstantRepresentation>(_ cond: Constant, then: Constant<T>, else: Constant<T>) -> Constant<T> {
848+
public static func select<T>(_ cond: Constant, then: Constant<T>, else: Constant<T>) -> Constant<T> {
849849
return Constant<T>(llvm: LLVMConstSelect(cond.llvm, then.llvm, `else`.llvm))
850850
}
851851
}

0 commit comments

Comments
 (0)