From 8e7aeed2d51327a7e1c806e66267465d0adcfa25 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 6 May 2011 10:21:33 -0700 Subject: rustc: Include a representation of the type in question in the symbols generated for tydescs --- src/comp/middle/trans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp') diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 45c39ca7..84576623 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -1731,7 +1731,7 @@ fn declare_tydesc(@local_ctxt cx, ty.t t) -> @tydesc_info { auto glue_fn_ty = T_ptr(T_glue_fn(ccx.tn)); - auto name = mangle_name_by_seq(ccx, cx.path, "tydesc"); + auto name = mangle_name_by_type_only(ccx, t, "tydesc"); auto gvar = llvm.LLVMAddGlobal(ccx.llmod, T_tydesc(ccx.tn), _str.buf(name)); auto tydesc = C_struct(vec(C_null(T_ptr(T_ptr(T_tydesc(ccx.tn)))), -- cgit v1.2.3