[clang] [CIR] Upstream `AddressSpace` conversions support (PR #161212)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 7 16:11:21 PDT 2025


================
@@ -1191,7 +1193,16 @@ LValue CIRGenFunction::emitCastLValue(const CastExpr *e) {
   case CK_Dynamic:
   case CK_ToUnion:
   case CK_BaseToDerived:
-  case CK_AddressSpaceConversion:
+  case CK_AddressSpaceConversion: {
----------------
andykaylor wrote:

The cast types above will fall through here. You don't want that. Move this below the CK_LValueBitCast handler.

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


More information about the cfe-commits mailing list