Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f82d9e4

Browse files
committedMar 2, 2025·
minor
Change-Id: I5e7b39f9d9bb0d41e7490ca139caf681bc7615b0
1 parent 5af4c71 commit f82d9e4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎src/cmd/compile/internal/devirtualize/devirtualize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func (s *State) assignments(n *ir.Name) []valOrTyp {
389389
}
390390

391391
if !n.Type().IsInterface() {
392-
base.Fatalf("name passed to getAssignments is not of an interface type: %v", n.Type())
392+
base.Fatalf("name passed to assignments is not of an interface type: %v", n.Type())
393393
}
394394

395395
// Analyze assignments in func, if not analyzed before.
@@ -443,7 +443,7 @@ func (s *State) analyze(nodes ir.Nodes) {
443443
}
444444

445445
if concreteTypeDebug {
446-
base.Warn("populateIfaceAssignments(): assignment found %v = (%v;%v)", name, value.typ, value.node)
446+
base.Warn("analyze(): assignment found %v = (%v;%v)", name, value.typ, value.node)
447447
}
448448

449449
s.ifaceAssignments[n] = append(s.ifaceAssignments[n], value)

‎src/cmd/compile/internal/ir/expr.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,6 @@ func (n *InlinedCallExpr) SingleResult() Node {
386386
if have := len(n.ReturnVars); have != 1 {
387387
base.FatalfAt(n.Pos(), "inlined call has %v results, expected 1", have)
388388
}
389-
// TODO: do we need to do that also?
390389
if !n.Type().HasShape() && n.ReturnVars[0].Type().HasShape() {
391390
// If the type of the call is not a shape, but the type of the return value
392391
// is a shape, we need to do an implicit conversion, so the real type

0 commit comments

Comments
 (0)