From c3236753d6bb69d20003a7da441e9a42707ed714 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 9 Nov 2010 22:51:42 +0000 Subject: [PATCH] Delete the allocated vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118644 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1