Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for defaultlit2 (0.1 sec)

  1. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    		// Assign globals[i].size.
    		g := n.(*ir.Name)
    		size := g.Type().Size()
    		c = typecheck.DefaultLit(ir.NewInt(base.Pos, size), types.Types[types.TUINTPTR])
    		setField("size", c, i)
    		// Assign globals[i].sizeWithRedzone.
    		rzSize := GetRedzoneSizeForGlobal(size)
    		sizeWithRz := rzSize + size
    		c = typecheck.DefaultLit(ir.NewInt(base.Pos, sizeWithRz), types.Types[types.TUINTPTR])
    		setField("sizeWithRedzone", c, i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/select.go

    			}
    		}
    
    		list.Append(cas.Body.Take()...)
    		list.Append(ir.NewBranchStmt(base.Pos, ir.OBREAK, nil))
    
    		var r ir.Node
    		if cond != nil {
    			cond = typecheck.Expr(cond)
    			cond = typecheck.DefaultLit(cond, nil)
    			r = ir.NewIfStmt(base.Pos, cond, list, nil)
    		} else {
    			r = ir.NewBlockStmt(base.Pos, list)
    		}
    
    		init = append(init, r)
    	}
    
    	if dflt != nil {
    		ir.SetPos(dflt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top