Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isNilCheck (0.13 sec)

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

    	deadcode(fun.f)
    
    	CheckFunc(fun.f)
    	foundDifferentCheck := false
    	for _, b := range fun.f.Blocks {
    		if b == fun.blocks["secondCheck"] && isNilCheck(b) {
    			t.Errorf("secondCheck was not eliminated")
    		}
    		if b == fun.blocks["differentCheck"] && isNilCheck(b) {
    			foundDifferentCheck = true
    		}
    	}
    	if !foundDifferentCheck {
    		t.Errorf("removed differentCheck, but shouldn't have")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top