From fc6e6a9b3b2b2de7bee47d9dcbdfdc72ca7f5238 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 10 May 2010 21:24:55 +0000 Subject: [PATCH] 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 --- lib/CodeGen/TwoAddressInstructionPass.cpp | 1 + 1 file changed, 1 insertion(+) 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; }