[compiler-rt] [clang-tools-extra] [clang] [llvm] [InferAddressSpaces] Fix constant replace to avoid modifying other functions (PR #70611)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 7 05:22:33 PST 2023


================
@@ -334,6 +335,15 @@ template<> struct simplify_type<User::const_op_iterator> {
   }
 };
 
+template <> struct GraphTraits<User *> {
----------------
arsenm wrote:

If we allowed bitcasts between address spaces with the same size, we could drop addrspacecast constantexprs altogether 

https://github.com/llvm/llvm-project/pull/70611


More information about the cfe-commits mailing list