diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2019-09-18 16:19:40 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2019-09-18 16:19:40 +0000 |
commit | 97a18dc70430a2dbd03ef794ca072c0e39033ff6 (patch) | |
tree | 64f10dee89760e56ef5cbb1bc58ca45689754bff /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 8f16cc46f7d8983e0075ff698f23ffdb74fe7188 (diff) | |
download | bcm5719-llvm-97a18dc70430a2dbd03ef794ca072c0e39033ff6.tar.gz bcm5719-llvm-97a18dc70430a2dbd03ef794ca072c0e39033ff6.zip |
[Alignment][NFC] Align(1) to Align::None() conversions
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
llvm-svn: 372234
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 6c9712b63ff..8f7866313bc 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -629,7 +629,7 @@ void MIPrinter::print(const MachineBasicBlock &MBB) { OS << "landing-pad"; HasAttributes = true; } - if (MBB.getAlignment() > 1) { + if (MBB.getAlignment() != llvm::Align::None()) { OS << (HasAttributes ? ", " : " ("); OS << "align " << MBB.getAlignment().value(); HasAttributes = true; |