// 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;