Delete the allocated vector.
authorBill Wendling <isanbard@gmail.com>
Tue, 9 Nov 2010 22:51:42 +0000 (22:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 9 Nov 2010 22:51:42 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118644 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 8ae5e03d261ace29d14f11b1ba9e1f89fc2606e1..bb7494ba94346fb67c24842f50bf1bcfdf8b6e13 100644 (file)
@@ -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; }