Delete the allocated vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2010-11-09 22:51:42 +00:00
parent 66f6c79450
commit c3236753d6

View 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; }