Skip to content

Commit f8bef17

Browse files
committed
Silence public member of public extension warnings
1 parent f74e159 commit f8bef17

File tree

3 files changed

+89
-89
lines changed

3 files changed

+89
-89
lines changed

Sources/LLVM/IRType.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public protocol IRType {
1111

1212
public extension IRType {
1313
/// Returns the special `null` value for this type.
14-
public func null() -> IRConstant {
14+
func null() -> IRConstant {
1515
return Constant<Struct>(llvm: LLVMConstNull(asLLVM()))
1616
}
1717

@@ -20,18 +20,18 @@ public extension IRType {
2020
/// The `undef` value can be used anywhere a constant is expected, and
2121
/// indicates that the user of the value may receive an unspecified
2222
/// bit-pattern.
23-
public func undef() -> IRValue {
23+
func undef() -> IRValue {
2424
return LLVMGetUndef(asLLVM())
2525
}
2626

2727
/// Returns the special LLVM constant `null` pointer value for this type
2828
/// initialized to `null`.
29-
public func constPointerNull() -> IRConstant {
29+
func constPointerNull() -> IRConstant {
3030
return Constant<Struct>(llvm: LLVMConstPointerNull(asLLVM()))
3131
}
3232

3333
/// Returns the context associated with this type
34-
public var context: Context {
34+
var context: Context {
3535
return Context(llvm: LLVMGetTypeContext(asLLVM()))
3636
}
3737
}

0 commit comments

Comments
 (0)