simplify this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2008-02-15 22:57:17 +00:00
parent 35e11cd70b
commit 9f8ec25805

View File

@ -1914,9 +1914,7 @@ erase function to remove your instruction. For example:</p>
<div class="doc_code">
<pre>
<a href="#Instruction">Instruction</a> *I = .. ;
<a href="#BasicBlock">BasicBlock</a> *BB = I-&gt;getParent();
BB-&gt;getInstList().erase(I);
I-&gt;eraseFromParent();
</pre>
</div>