================
@@ -764,11 +764,18 @@ void AsmPrinter::emitGlobalVariable(const GlobalVariable
*GV) {
const DataLayout &DL = GV->getDataLayout();
uint64_t Size = DL.getTypeAllocSize(GV->getValueType());
+ if (GV->isTagged())
+ Size = alignTo(Size, 16);
----------------
pcc wrote:
But isn't the padding necessary to prevent another non-MTE global from being
placed there? Aligning st_size won't cause that to happen, st_size is almost
unused these days.
https://github.com/llvm/llvm-project/pull/111918
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits