Skip to content

Commit dfccd5a

Browse files
committed
rustc: Fix stack explosion on -O0 from Alloca() instead of alloca() in cmp glue
1 parent 85b5b2a commit dfccd5a

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
@@ -2987,7 +2987,7 @@ fn call_cmp_glue(&@block_ctxt cx, ValueRef lhs, ValueRef rhs, &ty::t t,
29872987
auto llfnptr =
29882988
r.bcx.build.GEP(r.val, [C_int(0), C_int(abi::tydesc_field_cmp_glue)]);
29892989
auto llfn = r.bcx.build.Load(llfnptr);
2990-
auto llcmpresultptr = r.bcx.build.Alloca(T_i1());
2990+
auto llcmpresultptr = alloca(r.bcx, T_i1());
29912991
let vec[ValueRef] llargs =
29922992
[llcmpresultptr, r.bcx.fcx.lltaskptr, C_null(T_ptr(T_nil())),
29932993
lltydescs, llrawlhsptr, llrawrhsptr, llop];

0 commit comments

Comments
 (0)