diff options
| author | Jeffrey Yasskin <[email protected]> | 2010-07-22 19:02:23 +0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-23 00:42:51 +0800 |
| commit | 2c24f70cf4122926d4c9c1613d98d3c62c41b8a4 (patch) | |
| tree | 155d7945256a74d75a5194c9e256ee8109566564 /src/boot/llvm/lltrans.ml | |
| parent | Implement tuple access for LLVM. (diff) | |
| download | rust-2c24f70cf4122926d4c9c1613d98d3c62c41b8a4.tar.xz rust-2c24f70cf4122926d4c9c1613d98d3c62c41b8a4.zip | |
Fix simple generic type parameters in LLVM.
Diffstat (limited to 'src/boot/llvm/lltrans.ml')
| -rw-r--r-- | src/boot/llvm/lltrans.ml | 7 |
1 files changed, 4 insertions, 3 deletions
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) |