From b6d1f39cd0ed77997007db2053a5b5e277c67fc9 Mon Sep 17 00:00:00 2001
From: Nick Lewycky
This function replaces all uses (within a basic block) of a given - instruction with a value, and then removes the original instruction. The - following example illustrates the replacement of the result of a particular +
This function replaces all uses of a given instruction with a value, + and then removes the original instruction. The following example + illustrates the replacement of the result of a particular AllocaInst that allocates memory for a single integer with a null pointer to an integer.
@@ -1962,8 +1962,10 @@ ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii,This function replaces a particular instruction with another - instruction. The following example illustrates the replacement of one - AllocaInst with another.
+ instruction, inserting the new instruction into the basic block at the + location where the old instruction was, and replacing any uses of the old + instruction with the new instruction. The following example illustrates + the replacement of one AllocaInst with another.-- cgit v1.1