From 2c24f70cf4122926d4c9c1613d98d3c62c41b8a4 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Thu, 22 Jul 2010 19:02:23 +0800 Subject: Fix simple generic type parameters in LLVM. --- src/boot/llvm/lltrans.ml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/boot/llvm/lltrans.ml') diff --git a/src/boot/llvm/lltrans.ml b/src/boot/llvm/lltrans.ml index ef1affc0..51a05c74 100644 --- a/src/boot/llvm/lltrans.ml +++ b/src/boot/llvm/lltrans.ml @@ -346,12 +346,13 @@ let trans_crate | Ast.TY_native _ -> word_ty + | Ast.TY_param _ -> + abi.Llabi.tydesc_ty + | Ast.TY_tag _ | Ast.TY_iso _ | Ast.TY_idx _ - | Ast.TY_obj _ | Ast.TY_type -> + | Ast.TY_obj _ | Ast.TY_type | Ast.TY_named _ -> Common.unimpl None "LLVM type translation for: %a" Ast.sprintf_ty ty - | Ast.TY_param _ | Ast.TY_named _ -> - bug () "unresolved type in lltrans" and trans_ty t = htab_search_or_add lltys t (fun _ -> trans_ty_full t) -- cgit v1.2.3