<pre>
AllocaInst* instToReplace = ...;
<pre>
AllocaInst* instToReplace = ...;
-ReplaceInstWithValue(*instToReplace->getParent(), instToReplace,
+BasicBlock::iterator ii(instToReplace);
+ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii,
Constant::getNullValue(PointerType::get(Type::IntTy)));
</pre>
Constant::getNullValue(PointerType::get(Type::IntTy)));
</pre>
<pre>
AllocaInst* instToReplace = ...;
<pre>
AllocaInst* instToReplace = ...;
-ReplaceInstWithInst(*instToReplace->getParent(), instToReplace,
+BasicBlock::iterator ii(instToReplace);
+ReplaceInstWithInst(instToReplace->getParent()->getInstList(), ii,
new AllocaInst(Type::IntTy, 0, "ptrToReplacedInt");
</pre>
new AllocaInst(Type::IntTy, 0, "ptrToReplacedInt");
</pre>
<a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
<a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
<!-- Created: Tue Aug 6 15:00:33 CDT 2002 -->
<!-- hhmts start -->
-Last modified: Sun Sep 22 14:38:05 CDT 2002
+Last modified: Sun Sep 29 12:31:23 CDT 2002
<!-- hhmts end -->
</font></body></html>
<!-- hhmts end -->
</font></body></html>