ΒΆunsigned int changeToUnreachable(
    llvm::Instruction* I,
    bool UseLLVMTrap,
    bool PreserveLCSSA = false,
    llvm::DomTreeUpdater* DTU = nullptr,
    llvm::MemorySSAUpdater* MSSAU = nullptr)

Description

Insert an unreachable instruction before the specified instruction, making it and the rest of the code in the block dead.

Declared at: llvm/include/llvm/Transforms/Utils/Local.h:396

Parameters

llvm::Instruction* I
bool UseLLVMTrap
bool PreserveLCSSA = false
llvm::DomTreeUpdater* DTU = nullptr
llvm::MemorySSAUpdater* MSSAU = nullptr