llvm::Constant::getNullValue

Return the null constant of type Ty (zero for integers, null for pointers, and so on).

Synopsis

Declared in <llvm/IR/Constant.h>

static
Constant*
getNullValue(Type* Ty);

Return Value

The null constant of type Ty.

Parameters

NameDescription
TyThe type of the null constant to create.