diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 415f28b094b..6c9712b63ff 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -629,10 +629,9 @@ void MIPrinter::print(const MachineBasicBlock &MBB) { OS << "landing-pad"; HasAttributes = true; } - if (MBB.getLogAlignment()) { + if (MBB.getAlignment() > 1) { OS << (HasAttributes ? ", " : " ("); - OS << "align " - << (1UL << MBB.getLogAlignment()); + OS << "align " << MBB.getAlignment().value(); HasAttributes = true; } if (HasAttributes) |