aboutsummaryrefslogtreecommitdiff
path: root/src/boot/llvm/lltrans.ml
diff options
context:
space:
mode:
authorJeffrey Yasskin <[email protected]>2010-07-22 19:02:23 +0800
committerGraydon Hoare <[email protected]>2010-07-23 00:42:51 +0800
commit2c24f70cf4122926d4c9c1613d98d3c62c41b8a4 (patch)
tree155d7945256a74d75a5194c9e256ee8109566564 /src/boot/llvm/lltrans.ml
parentImplement tuple access for LLVM. (diff)
downloadrust-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.ml7
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)