Skip to content

Commit a127967

Browse files
authored
Merge pull request #130 from CodaFi/objective-met
Remove fatalError bars on TokenType and MetadataType
2 parents 2e855ba + 9abf7f0 commit a127967

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/LLVM/MetadataType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public struct MetadataType: IRType {
1818

1919
/// Retrieves the underlying LLVM type object.
2020
public func asLLVM() -> LLVMTypeRef {
21-
fatalError("This version of LLVM does not support the creation of MetadataType objects")
21+
return LLVMMetadataTypeInContext(context.llvm)
2222
}
2323
}

Sources/LLVM/TokenType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ public struct TokenType: IRType {
1919

2020
/// Retrieves the underlying LLVM type object.
2121
public func asLLVM() -> LLVMTypeRef {
22-
fatalError("This version of LLVM does not support the creation of TokenType objects")
22+
return LLVMTokenTypeInContext(context.llvm)
2323
}
2424
}

0 commit comments

Comments
 (0)