[clang] [clang] Replace uses of CreatePointerBitCastOrAddrSpaceCast (NFC) (PR #68277)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 5 08:07:58 PDT 2023


================
@@ -2138,6 +2138,8 @@ class IRBuilderBase {
     return Insert(CastInst::CreatePointerCast(V, DestTy), Name);
   }
 
+  // With opaque pointers enabled, this is same as CreateAddressSpaceCast.
----------------
arsenm wrote:

I don't think this is quite accurate, CreateAddrSpaceCast requires the source and dest to be different addrspaces 

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


More information about the cfe-commits mailing list