mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
rustc: Fix stack explosion on -O0 from Alloca() instead of alloca() in cmp glue
This commit is contained in:
parent
85b5b2a8e4
commit
dfccd5a138
@ -2987,7 +2987,7 @@ fn call_cmp_glue(&@block_ctxt cx, ValueRef lhs, ValueRef rhs, &ty::t t,
|
|||||||
auto llfnptr =
|
auto llfnptr =
|
||||||
r.bcx.build.GEP(r.val, [C_int(0), C_int(abi::tydesc_field_cmp_glue)]);
|
r.bcx.build.GEP(r.val, [C_int(0), C_int(abi::tydesc_field_cmp_glue)]);
|
||||||
auto llfn = r.bcx.build.Load(llfnptr);
|
auto llfn = r.bcx.build.Load(llfnptr);
|
||||||
auto llcmpresultptr = r.bcx.build.Alloca(T_i1());
|
auto llcmpresultptr = alloca(r.bcx, T_i1());
|
||||||
let vec[ValueRef] llargs =
|
let vec[ValueRef] llargs =
|
||||||
[llcmpresultptr, r.bcx.fcx.lltaskptr, C_null(T_ptr(T_nil())),
|
[llcmpresultptr, r.bcx.fcx.lltaskptr, C_null(T_ptr(T_nil())),
|
||||||
lltydescs, llrawlhsptr, llrawrhsptr, llop];
|
lltydescs, llrawlhsptr, llrawrhsptr, llop];
|
||||||
|
Loading…
Reference in New Issue
Block a user