llvm::ConstantExpr::getIntToPtr

Return an inttoptr cast of C to type Ty.

Synopsis

Declared in <llvm/IR/Constants.h>

static
Constant*
getIntToPtr(
    Constant* C,
    Type* Ty,
    bool OnlyIfReduced = false);

Return Value

An inttoptr cast of C to type Ty.

Parameters

NameDescription
CThe integer constant to cast.
TyThe destination pointer type.
OnlyIfReducedIf true, return null unless the expression reduces.