From ae5efdf16c6676b509278a864a5d3d4c89a45c6d Mon Sep 17 00:00:00 2001 From: xushiwei Date: Mon, 29 Apr 2024 18:01:03 +0800 Subject: [PATCH] disable ArrayAlloca --- ssa/expr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssa/expr.go b/ssa/expr.go index 817bb55c..822e7172 100644 --- a/ssa/expr.go +++ b/ssa/expr.go @@ -432,6 +432,7 @@ func (b Builder) Alloca(n Expr) (ret Expr) { return } +/* // ArrayAlloca reserves space for an array of n elements of type telem. func (b Builder) ArrayAlloca(telem Type, n Expr) (ret Expr) { if debugInstr { @@ -441,6 +442,7 @@ func (b Builder) ArrayAlloca(telem Type, n Expr) (ret Expr) { ret.Type = b.Prog.Pointer(telem) return } +*/ // The ChangeType instruction applies to X a value-preserving type // change to Type().