Unique ownership pointer for Value that calls deleteValue.
Synopsis
Declared in <llvm/IR/Value.h>
using unique_value = std::unique_ptr<Value, ValueDeleter>;
Description
Use this instead of std::unique_ptr<Value> or std::unique_ptr<Instruction>. Those don't work because Value and Instruction's destructors are protected, aren't virtual, and won't destroy the complete object.
Created with MrDocs