[#llvm-ReplaceInstWithInst-01] = xref:llvm.adoc[llvm]::ReplaceInstWithInst :relfileprefix: ../ :mrdocs: Replace one instruction with another and copy its debug location. == Synopsis Declared in `<llvm/Transforms/Utils/BasicBlockUtils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void ReplaceInstWithInst( xref:llvm/Instruction.adoc[Instruction]* From, xref:llvm/Instruction.adoc[Instruction]* To); ---- == Description Copies DebugLoc from From to To, if To doesn't already have a DebugLoc. == Parameters [cols="1,4"] |=== | Name| Description | *From* | Instruction to replace and delete. | *To* | Replacement instruction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#