From: Chris Lattner Date: Mon, 16 Jun 2008 04:02:40 +0000 (+0000) Subject: fix pr2460 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6520aa0f5ee12873ee85a34e17e628803f776b1a;p=oota-llvm.git fix pr2460 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52294 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index a49f6a564c2..80a24f9ff9f 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -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