diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-11-25 02:26:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-11-25 02:26:22 +0000 |
commit | cb2818fa7630741e03beb352f1df773f238a40d8 (patch) | |
tree | d57be3581f7f1038b9d988b67d5d74d3e1ca841d /llvm/lib/IR/LLVMContextImpl.h | |
parent | 899b85a556e5493beea0ef0d914d5a454e6b1a81 (diff) | |
download | bcm5719-llvm-cb2818fa7630741e03beb352f1df773f238a40d8.tar.gz bcm5719-llvm-cb2818fa7630741e03beb352f1df773f238a40d8.zip |
Revert "unique_ptrify LLVMContextImpl::CAZConstants"
Missed the complexities of how these elements are destroyed.
This reverts commit r222714.
llvm-svn: 222715
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index 65d6774e335..7a298cfecf3 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -299,10 +299,7 @@ public: // on Context destruction. SmallPtrSet<GenericMDNode *, 1> NonUniquedMDNodes; - // Value is indirected through pointer to keep pointer validity over mutations - // of this map. Replace if/when we have an efficient map that guarantees - // pointer validity over mutations. - DenseMap<Type*, std::unique_ptr<ConstantAggregateZero>> CAZConstants; + DenseMap<Type*, ConstantAggregateZero*> CAZConstants; typedef ConstantUniqueMap<ConstantArray> ArrayConstantsTy; ArrayConstantsTy ArrayConstants; |