Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.155 -> 1.156 --- Log message: modify per review commentary --- Diffs of the changes: (+2 -2) AsmPrinter.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/CodeGen/AsmPrinter.cpp diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.155 llvm/lib/CodeGen/AsmPrinter.cpp:1.156 --- llvm/lib/CodeGen/AsmPrinter.cpp:1.155 Mon Apr 23 14:58:54 2007 +++ llvm/lib/CodeGen/AsmPrinter.cpp Mon Apr 23 18:33:31 2007 @@ -582,8 +582,8 @@ // Use the maximum of the specified alignment and the alignment from the // specified GlobalValue (if any). void AsmPrinter::EmitAlignment(unsigned NumBits, const GlobalValue *GV) const { - if (GV && GV->getAlignment() && Log2_32(GV->getAlignment()) > NumBits) - NumBits = Log2_32(GV->getAlignment()); + if (GV && GV->getAlignment()) + NumBits = std::max(NumBits, Log2_32(GV->getAlignment())); if (NumBits == 0) return; // No need to emit alignment. if (TAI->getAlignmentIsInBytes()) NumBits = 1 << NumBits; O << TAI->getAlignDirective() << NumBits << "\n"; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits