]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/walk/switch.go
cmd/compile: use type hash from itab field instead of type field
[gostls13.git] / src / cmd / compile / internal / walk / switch.go
index aa04700088edce53b82fe81ed27b49e041c527a2..1aff97d7fd3caf58c336397b5648ed51903762b4 100644 (file)
@@ -547,7 +547,7 @@ func walkSwitchType(sw *ir.SwitchStmt) {
                                typeArg = itabType(srcItab)
                        }
                        caseVar := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT])
-                       isw := ir.NewInterfaceSwitchStmt(base.Pos, caseVar, s.itabName, typeArg, lsym)
+                       isw := ir.NewInterfaceSwitchStmt(base.Pos, caseVar, s.itabName, typeArg, dotHash, lsym)
                        sw.Compiled.Append(isw)
 
                        // Switch on the result of the call (or cache lookup).