summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-16 04:02:40 +0000
committerChris Lattner <sabre@nondot.org>2008-06-16 04:02:40 +0000
commit7d6aac85c411e045547301dae09f32a113011f66 (patch)
tree9782e15623b6793f93a934f12f3b0b94f2c15852 /llvm/lib/VMCore/Instructions.cpp
parent075293ff46752793c46906d4d26b7d46267c9747 (diff)
downloadbcm5719-llvm-7d6aac85c411e045547301dae09f32a113011f66.tar.gz
bcm5719-llvm-7d6aac85c411e045547301dae09f32a113011f66.zip
fix pr2460
llvm-svn: 52294
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index a49f6a564c2..80a24f9ff9f 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud