Commit 360c1915 authored by Alberto Donizetti's avatar Alberto Donizetti
Browse files

cmd/compile: print accurate escape reason for non-const-length slices

This change makes `-m -m` print a better explanation for the case
where a slice is marked as escaping and heap-allocated because it
has a non-constant len/cap.

Fixes #24578

Change-Id: I0ebafb77c758a99857d72b365817bdba7b446cc0
Reviewed-on: https://go-review.googlesource.com/102895


Reviewed-by: default avatarDavid Chase <drchase@google.com>
Reviewed-by: default avatarIlya Tocar <ilya.tocar@intel.com>
parent f8b28e28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment