diff --git a/Sources/LLVM/MetadataType.swift b/Sources/LLVM/MetadataType.swift index ae3d389d..a72780fd 100644 --- a/Sources/LLVM/MetadataType.swift +++ b/Sources/LLVM/MetadataType.swift @@ -18,6 +18,6 @@ public struct MetadataType: IRType { /// Retrieves the underlying LLVM type object. public func asLLVM() -> LLVMTypeRef { - fatalError("This version of LLVM does not support the creation of MetadataType objects") + return LLVMMetadataTypeInContext(context.llvm) } } diff --git a/Sources/LLVM/TokenType.swift b/Sources/LLVM/TokenType.swift index 3e307586..afc32dcb 100644 --- a/Sources/LLVM/TokenType.swift +++ b/Sources/LLVM/TokenType.swift @@ -19,6 +19,6 @@ public struct TokenType: IRType { /// Retrieves the underlying LLVM type object. public func asLLVM() -> LLVMTypeRef { - fatalError("This version of LLVM does not support the creation of TokenType objects") + return LLVMTokenTypeInContext(context.llvm) } }