llvm::getReallocatedOperand

If this is a call to a realloc function, return the reallocated operand.

Synopsis

Declared in <llvm/Analysis/MemoryBuiltins.h>

Value*
getReallocatedOperand(CallBase const* CB);

Return Value

The reallocated operand, or nullptr if CB is not a realloc.

Parameters

NameDescription
CBCall that may be a realloc-like function.