commit | fa27f925be05edccc0b47c40dd808465fe25fca2 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Wed Jun 08 00:13:39 2016 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Wed Jun 08 00:13:39 2016 +0000 |
tree | c9eb4524199a54202bb9775413731ae3244f05ce | |
parent | 5ae402a784850521533952792dca4992c3360854 [diff] |
IR: Call dropAllReferences from GlobalVariable's destructor. We were previously failing to do this and as a result failing to drop attached metadata. Not sure if there's a good way to test this. An in-progress patch exposed this problem by allocating a GlobalVariable at the same address as a previously allocated GlobalVariable. Differential Revision: http://reviews.llvm.org/D21109 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272077 91177308-0d34-0410-b5e6-96231b3b80d8