Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fixedbugs (0.44 sec)

  1. src/cmd/compile/internal/ssagen/ssa.go

    			if n.Bounded() && ir.IsConst(n.X, constant.String) && ir.IsConst(n.Index, constant.Int) {
    				// Replace "abc"[1] with 'b'.
    				// Delayed until now because "abc"[1] is not an ideal constant.
    				// See test/fixedbugs/issue11370.go.
    				return s.newValue0I(ssa.OpConst8, types.Types[types.TUINT8], int64(int8(ir.StringVal(n.X)[ir.Int64Val(n.Index)])))
    			}
    			a := s.expr(n.X)
    			i := s.expr(n.Index)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top