[clang] [CIR] Emit inbounds/inrange for vtable address points in initializers (PR #227520)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 7 17:16:21 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list