From: Evan Cheng Date: Mon, 10 May 2010 21:24:55 +0000 (+0000) Subject: Clear RegSequences vector after eliminating REG_SEQUENCE instructions. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fc6e6a9b3b2b2de7bee47d9dcbdfdc72ca7f5238;p=oota-llvm.git Clear RegSequences vector after eliminating REG_SEQUENCE instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103435 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index fde32da9caa..4ccb6611387 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1179,5 +1179,6 @@ bool TwoAddressInstructionPass::EliminateRegSequences() { MI->eraseFromParent(); } + RegSequences.clear(); return true; }