[clang] [llvm] [MTE] Apply alignment / size in AsmPrinter rather than IR (PR #111918)
    Evgenii Stepanov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 22 15:20:50 PDT 2024
    
    
  
================
@@ -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);
----------------
eugenis wrote:
Good catch.
https://github.com/llvm/llvm-project/pull/111918
    
    
More information about the llvm-commits
mailing list