MCPcopy Create free account
hub / github.com/google/gapid / IsNull

Method IsNull

core/codegen/value.go:242–247  ·  view source on GitHub ↗

IsNull returns true if the pointer value v is null.

()

Source from the content-addressed store, hash-verified

240
241// IsNull returns true if the pointer value v is null.
242func (v *Value) IsNull() *Value {
243 if !IsPointer(v.ty) {
244 fail("IsNull only works with pointer value types. Got %v", v.Type().TypeName())
245 }
246 return v.b.val(v.b.m.Types.Bool, v.b.llvm.CreateIsNull(v.llvm, ""))
247}

Callers 8

buildMapMethod · 0.80
mapIndexMethod · 0.80
buildRefRelsMethod · 0.80
BuildMethod · 0.80
encodeValueMethod · 0.80
isAppPoolFunction · 0.80
implementClonesMethod · 0.80
cloneToMethod · 0.80

Calls 5

TypeMethod · 0.95
IsPointerFunction · 0.85
failFunction · 0.70
TypeNameMethod · 0.65
valMethod · 0.45

Tested by

no test coverage detected