mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 01:12:53 +00:00
simplify this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35e11cd70b
commit
9f8ec25805
@ -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->getParent();
|
||||
|
||||
BB->getInstList().erase(I);
|
||||
I->eraseFromParent();
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user