[clang] [CIR] Keep source address space in vtable.get_vptr result (PR #238495)
Steffen Larsen via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 00:48:54 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",
----------------
steffenlarsen wrote:
Big nit, but I think think it makes it _slightly_ more readable:
```suggestion
"result is a vptr pointer in the address space of 'src'",
"src", "result",
```
https://github.com/llvm/llvm-project/pull/238495
More information about the cfe-commits
mailing list