================
@@ -1203,7 +1203,9 @@ mlir::Value CIRGenFunction::getVTTParameter(GlobalDecl 
gd, bool forVirtualBase,
     // We're the complete constructor, so get the VTT by name.
     cir::GlobalOp vtt = cgm.getVTables().getAddrOfVTT(rd);
     return builder.createVTTAddrPoint(
-        loc, builder.getPointerTo(cgm.voidPtrTy),
+        loc,
+        builder.getPointerTo(convertType(getContext().VoidPtrTy),
+                             vtt.getAddrSpaceAttr()),
----------------
steffenlarsen wrote:

I would split this up into more variables, just to make the return statement a 
little smaller.

https://github.com/llvm/llvm-project/pull/240548
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to