rustc: Declare LLVM typedefs appropriately

This commit is contained in:
Patrick Walton 2010-12-10 16:24:47 -08:00
parent e37c032eb0
commit cf8ad5f56d

View File

@ -261,6 +261,7 @@ fn T_taskptr() -> TypeRef {
fn type_of(@crate_ctxt cx, @typeck.ty t) -> TypeRef {
let TypeRef llty = type_of_inner(cx, t);
check (llty as int != 0);
llvm.LLVMAddTypeName(cx.llmod, _str.buf(typeck.ty_to_str(t)), llty);
ret llty;
}