llvm::Instruction::getDbgReinsertionPosition

Return an iterator to the next DbgRecord after this instruction.

Synopsis

Declared in <llvm/IR/Instruction.h>

std::optional<simple_ilist<DbgRecord>::iterator>
getDbgReinsertionPosition();

Description

This is the position to pass to BasicBlock::reinsertInstInDbgRecords when re-inserting an instruction, or std::nullopt if there is none.

Return Value

Optional iterator to the next DbgRecord, or nullopt.