commit | c3236753d6bb69d20003a7da441e9a42707ed714 | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Tue Nov 09 22:51:42 2010 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Tue Nov 09 22:51:42 2010 +0000 |
tree | 328475a170b856d1b5a6c793a9b8038346c493eb | |
parent | 66f6c79450a93d979128d8702c83841c8f715dc8 [diff] [blame] |
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 8ae5e03..bb7494b 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -178,6 +178,10 @@ break; } } + ~ARMOperand() { + if (isRegList()) + delete RegList.Registers; + } /// getStartLoc - Get the location of the first token of this operand. SMLoc getStartLoc() const { return StartLoc; }