IsNull returns true if the pointer value v is null.
()
| 240 | |
| 241 | // IsNull returns true if the pointer value v is null. |
| 242 | func (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 | } |
no test coverage detected