llvm::Value::canBeFreed

Return true if this pointer's memory may be freed in its defining scope.

Synopsis

Declared in <llvm/IR/Value.h>

bool
canBeFreed() const;

Description

Return true if the memory object referred to by V can by freed in the scope for which the SSA value defining the allocation is statically defined. E.g. deallocation after the static scope of a value does not count, but a deallocation before that does.

Return Value

True if the pointed-to memory may be freed in this scope.