From dfccd5a138bfd7b20edcfd9ec1c7fae1eff3480c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 27 Jun 2011 18:26:43 -0700 Subject: [PATCH] rustc: Fix stack explosion on -O0 from Alloca() instead of alloca() in cmp glue --- src/comp/middle/trans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 2025c6e0e8b..aa42210cadd 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.rs @@ -2987,7 +2987,7 @@ fn call_cmp_glue(&@block_ctxt cx, ValueRef lhs, ValueRef rhs, &ty::t t, auto llfnptr = r.bcx.build.GEP(r.val, [C_int(0), C_int(abi::tydesc_field_cmp_glue)]); 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 = [llcmpresultptr, r.bcx.fcx.lltaskptr, C_null(T_ptr(T_nil())), lltydescs, llrawlhsptr, llrawrhsptr, llop];