Free all Constants in ~LLVMConstantImpl. We avoid assertion failures
authorJeffrey Yasskin <jyasskin@google.com>
Mon, 22 Mar 2010 05:23:37 +0000 (05:23 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Mon, 22 Mar 2010 05:23:37 +0000 (05:23 +0000)
commitc1dc0679706f7538cd17169b920967c54661e5b6
tree815521d8e780e580649eadf2a1d71bdaeac048e8
parentd592e1a809c0322cac26ddc630a00e46639eaf32
Free all Constants in ~LLVMConstantImpl.  We avoid assertion failures
by dropping all references from all constants that can use other
constants before trying to destroy any of them.

I also had to free bugpoint's Module in ~BugDriver().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99160 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantsContext.h
lib/VMCore/LLVMContextImpl.cpp
tools/bugpoint/BugDriver.cpp
tools/bugpoint/BugDriver.h