fix pr2460

llvm-svn: 52294
This commit is contained in:
Chris Lattner 2008-06-16 04:02:40 +00:00
parent 075293ff46
commit 7d6aac85c4
1 changed files with 2 additions and 1 deletions

View File

@ -130,7 +130,8 @@ PHINode::PHINode(const PHINode &PN)
}
PHINode::~PHINode() {
dropHungoffUses(OperandList);
if (OperandList)
dropHungoffUses(OperandList);
}
// removeIncomingValue - Remove an incoming value. This is useful if a