aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/sizeof_test.go
diff options
context:
space:
mode:
authorHeschi Kreinick <heschi@google.com>2017-07-21 18:28:06 -0400
committerHeschi Kreinick <heschi@google.com>2017-07-26 18:39:39 +0000
commit2d57d94ac314fd32529b1b2a92a086cb2dce0057 (patch)
tree45cd9a578da59a9953443ee9c1f4121f24a8d9fa /src/cmd/compile/internal/ssa/sizeof_test.go
parent788aa88cd0c63b75d49a54592e2a467c6183256f (diff)
downloadgo-2d57d94ac314fd32529b1b2a92a086cb2dce0057.tar.gz
go-2d57d94ac314fd32529b1b2a92a086cb2dce0057.zip
[dev.debug] cmd/compile: track variable decomposition in LocalSlot
When the compiler decomposes a user variable, track its origin so that it can be recomposed during DWARF generation. Change-Id: Ia71c7f8e7f4d65f0652f1c97b0dda5d9cad41936 Reviewed-on: https://go-review.googlesource.com/50878 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/sizeof_test.go')
-rw-r--r--src/cmd/compile/internal/ssa/sizeof_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/sizeof_test.go b/src/cmd/compile/internal/ssa/sizeof_test.go
index 9fab7b664f..f8bbed91b4 100644
--- a/src/cmd/compile/internal/ssa/sizeof_test.go
+++ b/src/cmd/compile/internal/ssa/sizeof_test.go
@@ -24,6 +24,7 @@ func TestSizeof(t *testing.T) {
}{
{Value{}, 68, 112},
{Block{}, 152, 288},
+ {LocalSlot{}, 32, 48},
{valState{}, 28, 40},
}