Delete NOP instructions as they are eliminated.

llvm-svn: 2199
This commit is contained in:
Chris Lattner 2002-04-09 15:05:04 +00:00
parent d4f70f5790
commit c71deb8412
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ void InsertPrologEpilogCode::InsertEpilogCode(Function *F)
while (termMvec.back()->getOpCode() == NOP)
{
assert( termMvec.back() == bbMvec.back());
delete termMvec.back();
termMvec.pop_back();
bbMvec.pop_back();
++numNOPs;