llvm::Constant::replaceUndefsWith

Try to replace undefined constant C or undefined elements in C with Replacement. If no changes are made, the constant C is returned.

Synopsis

Declared in <llvm/IR/Constant.h>

static
Constant*
replaceUndefsWith(
    Constant* C,
    Constant* Replacement);

Return Value

The constant with undefs replaced, or C if unchanged.

Parameters

NameDescription
CThe constant whose undefs may be replaced.
ReplacementThe constant used in place of undefs.