ΒΆvoid ReplaceInstWithInst(llvm::Instruction* From,
llvm::Instruction* To)
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:115
Parameters
- llvm::Instruction* From
- llvm::Instruction* To