disable ArrayAlloca

This commit is contained in:
xushiwei
2024-04-29 18:01:03 +08:00
parent 2b82af519c
commit ae5efdf16c

View File

@@ -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().