Dear LLVM,
A minor thing.
During opt passes it is sometimes needed to adjust the pointer address space. However, I’ve noticed PointerType in LLVM has only get accessor, and clang has its initial setter. Maybe better to
— DerivedTypes.h (revision 156703)
+++ DerivedTypes.h (working copy)
@@ -450,6 +450,9 @@
/// @brief Return the address space of the Pointer type.
inline unsigned getAddressSpace() const { return getSubclassData(); }
- /// @brief Set the address space of the Pointer type.
- inline void setAddressSpace(unsigned addrspace) { setSubclassData(addrspace); }