ΒΆvoid ReplaceInstWithInst(llvm::Instruction* From,
                         llvm::Instruction* To)

Description

Replace the instruction specified by From with the instruction specified by To. Copies DebugLoc from BI to I, if I doesn't already have a DebugLoc.

Declared at: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:129

Parameters

llvm::Instruction* From
llvm::Instruction* To