================
@@ -499,8 +499,10 @@ void CIRGenVTables::emitVTTDefinition(cir::GlobalOp vttOp,
     };
 
     auto indicesAttr = mlir::ArrayAttr::get(mlirContext, indices);
-    cir::GlobalViewAttr init = cgm.getBuilder().getGlobalViewAttr(
-        cgm.getBuilder().getUInt8PtrTy(), vtable, indicesAttr);
+    auto init = cir::GlobalViewAttr::get(
----------------
andykaylor wrote:

Again, this could be done with a new `getGlobalViewAttr` overload.

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

Reply via email to