aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/User.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r--include/llvm/User.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h
index 2aca78c41a..1363495f7c 100644
--- a/include/llvm/User.h
+++ b/include/llvm/User.h
@@ -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: