diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-16 04:02:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-16 04:02:40 +0000 |
commit | bd6b7c39ee5c0e392e6c2143e8775c4935edf8f5 (patch) | |
tree | f0247c8aebbd6ba91499a428b7b7d84ca8fa03b8 /lib/VMCore/Instructions.cpp | |
parent | c218a5aa8938bfc2a48c11b40ba2fad6fdb4484b (diff) | |
download | external_llvm-bd6b7c39ee5c0e392e6c2143e8775c4935edf8f5.zip external_llvm-bd6b7c39ee5c0e392e6c2143e8775c4935edf8f5.tar.gz external_llvm-bd6b7c39ee5c0e392e6c2143e8775c4935edf8f5.tar.bz2 |
fix pr2460
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index a49f6a5..80a24f9 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 |