From 9abf7f0c89cd11f9a56147417e6ad7dc63018a9b Mon Sep 17 00:00:00 2001 From: Robert Widmann Date: Tue, 13 Mar 2018 17:12:42 -0600 Subject: [PATCH] Remove fatalError bars on TokenType and MetadataType --- Sources/LLVM/MetadataType.swift | 2 +- Sources/LLVM/TokenType.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } }