[clang] [CIR] Keep source address space in vtable.get_vptr result (PR #238495)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 4 01:18:27 PST 2026


================
@@ -3705,7 +3705,14 @@ def CIR_VTableAddrPointOp : CIR_Op<"vtable.address_point", [
 // VTableGetVPtr
 //===----------------------------------------------------------------------===//
 
-def CIR_VTableGetVPtrOp : CIR_Op<"vtable.get_vptr", [Pure]> {
+def CIR_VTableGetVPtrOp : CIR_Op<"vtable.get_vptr", [
+  Pure,
+  TypesMatchWith<
+      "result is a vptr pointer in the address space of 'src'", "src",
+      "result",
----------------
aobolensk wrote:

Done

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


More information about the cfe-commits mailing list