Simplify User::operator delete().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad
2011-01-26 21:56:10 +00:00
parent 1fe3aa15e9
commit adede0387b
2 changed files with 4 additions and 10 deletions

View File

@@ -53,6 +53,7 @@ protected:
void dropHungoffUses() {
Use::zap(OperandList, OperandList + NumOperands, true);
OperandList = 0;
// Reset NumOperands so User::operator delete() does the right thing.
NumOperands = 0;
}
public: