Skip to content

Commit 8e7aeed

Browse files
committed
rustc: Include a representation of the type in question in the symbols generated for tydescs
1 parent b4a0d89 commit 8e7aeed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ fn declare_tydesc(@local_ctxt cx, ty.t t) -> @tydesc_info {
17311731

17321732
auto glue_fn_ty = T_ptr(T_glue_fn(ccx.tn));
17331733

1734-
auto name = mangle_name_by_seq(ccx, cx.path, "tydesc");
1734+
auto name = mangle_name_by_type_only(ccx, t, "tydesc");
17351735
auto gvar = llvm.LLVMAddGlobal(ccx.llmod, T_tydesc(ccx.tn),
17361736
_str.buf(name));
17371737
auto tydesc = C_struct(vec(C_null(T_ptr(T_ptr(T_tydesc(ccx.tn)))),

0 commit comments

Comments
 (0)