Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67715
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372234
91177308-0d34-0410-b5e6-
96231b3b80d8
OS << "landing-pad";
HasAttributes = true;
}
- if (MBB.getAlignment() > 1) {
+ if (MBB.getAlignment() != llvm::Align::None()) {
OS << (HasAttributes ? ", " : " (");
OS << "align " << MBB.getAlignment().value();
HasAttributes = true;
OS << "landing-pad";
HasAttributes = true;
}
- if (getAlignment() > 1) {
+ if (getAlignment() != llvm::Align::None()) {
OS << (HasAttributes ? ", " : " (");
OS << "align " << Log2(getAlignment());
HasAttributes = true;