[all-commits] [llvm/llvm-project] 6e2329: [SystemZ][z/OS] Force alignment to fix build failu...
Abhina Sree via All-commits
all-commits at lists.llvm.org
Mon Jul 11 05:29:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e2329e33ae3f0239785af0fb69bf73ebe3b8899
https://github.com/llvm/llvm-project/commit/6e2329e33ae3f0239785af0fb69bf73ebe3b8899
Author: Abhina Sreeskantharajan <Abhina.Sreeskantharajan at ibm.com>
Date: 2022-07-11 (Mon, 11 Jul 2022)
Changed paths:
M llvm/include/llvm/IR/Metadata.h
Log Message:
-----------
[SystemZ][z/OS] Force alignment to fix build failure on z/OS
The following commit https://reviews.llvm.org/D125998 added a static_assert which was triggered on z/OS because bitfields are always aligned to 1 regardless of type.
```
error: static_assert failed due to requirement 'alignof(llvm::SmallVector<llvm::MDOperand, 0>) <= alignof(llvm::MDNode::Header)' "LargeStorageVector too strongly aligned"
```
The solution was to force the alignment to be size_t.
Reviewed By: wolfgangp
Differential Revision: https://reviews.llvm.org/D129369
More information about the All-commits
mailing list