From: Bill Wendling Date: Tue, 9 Nov 2010 22:51:42 +0000 (+0000) Subject: Delete the allocated vector. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c3236753d6bb69d20003a7da441e9a42707ed714;p=oota-llvm.git Delete the allocated vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118644 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 8ae5e03d261..bb7494ba943 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -178,6 +178,10 @@ public: break; } } + ~ARMOperand() { + if (isRegList()) + delete RegList.Registers; + } /// getStartLoc - Get the location of the first token of this operand. SMLoc getStartLoc() const { return StartLoc; }