summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-11-09 22:51:42 +0000
committerBill Wendling <isanbard@gmail.com>2010-11-09 22:51:42 +0000
commitda3c0fbc64ee954daad992b7b200350881240811 (patch)
tree0cfc6d087c6739d3e8eb151a302fde019f26971a /llvm/lib/Target/ARM
parentd0046ca62dfcf7546db05449c21fd0b255268422 (diff)
downloadbcm5719-llvm-da3c0fbc64ee954daad992b7b200350881240811.tar.gz
bcm5719-llvm-da3c0fbc64ee954daad992b7b200350881240811.zip
Delete the allocated vector.
llvm-svn: 118644
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 8ae5e03d261..bb7494ba943 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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; }
OpenPOWER on IntegriCloud