Skip to content

Commit 7248995

Browse files
committed
Revert "cmd/compile: allow more args in StructMake folding rule"
This reverts commit 72e8237 (CL 693615) Reason for revert: still causing compiler failures on Google test code Change-Id: I4a7850c321d95ed7803d56866bb0c524c7a377d3 Reviewed-on: https://go-review.googlesource.com/c/go/+/695015 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent caf9fc3 commit 7248995

File tree

3 files changed

+3
-28
lines changed

3 files changed

+3
-28
lines changed

src/cmd/compile/internal/ssa/_gen/generic.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@
921921
@x.Block (Load <v.Type> (OffPtr <v.Type.PtrTo()> [t.FieldOff(int(i))] ptr) mem)
922922

923923
// Putting struct{*byte} and similar into direct interfaces.
924-
(IMake _typ (StructMake ___)) => imakeOfStructMake(v)
924+
(IMake _typ (StructMake val)) => imakeOfStructMake(v)
925925
(StructSelect [_] (IData x)) => (IData x)
926926

927927
// un-SSAable values use mem->mem copies

src/cmd/compile/internal/ssa/rewritegeneric.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixedbugs/issue74908.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)