We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e24e47d commit c3dd49cCopy full SHA for c3dd49c
Sources/LLVM/Constant.swift
@@ -845,7 +845,7 @@ extension Constant {
845
///
846
/// - returns: A constant value representing the constant value selected for
847
/// by the condition.
848
- public static func select<T: ConstantRepresentation>(_ cond: Constant, then: Constant<T>, else: Constant<T>) -> Constant<T> {
+ public static func select<T>(_ cond: Constant, then: Constant<T>, else: Constant<T>) -> Constant<T> {
849
return Constant<T>(llvm: LLVMConstSelect(cond.llvm, then.llvm, `else`.llvm))
850
}
851
0 commit comments